A network service method and system for generating encrypted short links

By using SM2 and SM4 algorithms to generate encrypted short links in the microservice architecture, the problem of links that are inaccessible during failure or closing time of links is solved, and the security of user privacy information is ensured through encryption and digital signature algorithms. Reduce the risk of malicious attacks and achieve safe and reliable short-chain services.

CN118555065BActive Publication Date: 2024-11-22BEIJING JIANGRONGXIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410806056.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-11-22
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

The existing short-chain service platform may cause long links to be inaccessible when it fails or is closed, and there are security risks in the process of dissemination of user privacy information, and the short-chain content is inconsistent with the long-chain content, resulting in the inability to identify the affiliated organization and filing information, and there is a fraud. and risks of illegal conduct.

Method used

Using the encrypted short link generation method based on the microservice architecture, short links are generated using SM2 and SM4 algorithms, and without changing the original domain name, unique and secure short link codes are generated through encryption and digital signature algorithms to monitor timeliness and Status to ensure link security and reliability.

Benefits of technology

It realizes that without changing the original domain name, it provides users with a safe and reliable short link, avoids information leakage caused by redirection, improves the security and user experience of links, and reduces the risks of malicious attacks and link hijacking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555065B_ABST
    Figure CN118555065B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of data processing, and specifically discloses a network service method and system for generating encrypted short links, wherein the method comprises: receiving short link generation information input by a user, the short link generation information comprising a long link; according to a preset short link generation rule, using the access domain name of the long link as the short link domain name, generating a short link using the SM2 algorithm and the SM4 algorithm, and recording the generated short link in a database; monitoring the timeliness and status of the short link; receiving the short link address input by the user, decrypting the short link address using the SM2 algorithm and the SM4 algorithm, and judging the legitimacy of the short link address according to the decrypted data. The present application can realize a custom long link parameter conversion short link service, support long links carrying hundreds of parameters, and implement second-level response by real-time parsing of short links.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a network service method and system for generating encrypted short links. Background Art

[0002] In recent years, with the popularity of smart phones and the rapid development of mobile Internet, people have begun to use mobile phones more often to browse the web, share various information, website links, etc. in their daily lives and work. Long links are too long and complex on mobile devices, making them inconvenient to share and spread on social media, SMS, WeChat and other platforms. Short link technology can improve the availability of links and user experience.

[0003] There are many excellent short link service platforms on the Internet, such as Bitly, TinyURL, Tiny.cc and other well-known short link services. Users can convert long links into short links for easy sharing and dissemination; they mainly use MD5 hash-based or randomly generated short codes to associate the unique identifier of the short link; through the link redirection service, when a user visits a short link, it will be automatically redirected to the original long link. However, if the short link service platform fails or is shut down, the original long link may be affected, causing the link to be inaccessible; or the original link may need to be modified or a short link may need to be revoked, which may cause maintenance problems; at the same time, when the user clicks on the short link, the request will first reach the short link system. The short link system will find the corresponding real link, that is, the long link, based on the unique identifier of the short link, and then redirect the request to the long link. The browser will then eventually display the long link address, which will leak user privacy information and pose certain security risks. It may be maliciously used to spread malware, phishing websites, etc. The short link generation method of existing products is modular operation or shift operation, with a preset short link dictionary. The short link string is output through operation. The short link content is completely inconsistent with the long link content, which will cause users to be unable to identify the organization to which the short link domain name belongs and the filing information. At the same time, some people use short links to commit fraud, pornography, and violence.

[0004] Therefore, how to solve the defects in the prior art is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0005] To solve the above problems, this solution proposes a microservice architecture-based solution that uses the original domain name to access the service, providing users with a safe and reliable short link without changing the original domain name, and preventing redirection that would lead to leakage of user access information.

[0006] The present application provides a network service method for generating an encrypted short link, including:

[0007] Receiving short link generation information input by a user, wherein the short link generation information includes a long link;

[0008] According to the preset short link generation rules, the access domain name of the long link is used as the short link domain name, the short link is generated by using the SM2 algorithm and the SM4 algorithm, and the generated short link is recorded in the database;

[0009] Monitoring the timeliness and status of the short link;

[0010] Receive the short link address input by the user, decrypt the short link address using the SM2 algorithm and the SM4 algorithm, and determine the legitimacy of the short link address based on the decrypted data.

[0011] In some specific embodiments, the step of generating a short link using the SM2 algorithm and the SM4 algorithm includes: based on the long link input by the user, using an encryption and digital signature algorithm to generate a unique, secure and anti-theft short link code to determine the short link, and intercepting the access domain name of the long link as the short link domain name, and using the parameters carried by the long link domain name as the long link request content; the short link generation information also includes the input time and the short link validity period, using the short link validity period as the validity time, and using the input time as the short link creation time.

[0012] In some specific embodiments, the step of generating a short link using the SM2 algorithm and the SM4 algorithm further includes: generating a public key and a private key of the long link request content using the SM2 algorithm, and generating a short link key using the SM4 algorithm.

[0013] In some specific embodiments, the step of generating a short link using the SM2 algorithm and the SM4 algorithm also includes: using the MD5 algorithm to sort the short link domain name, the long link request content and the short link key according to the ASCII code of the field name, and splicing them into a string using the Key-Value splicing format.

[0014] In some specific embodiments, the step of generating a short link using the SM2 algorithm and the SM4 algorithm also includes: using the SM2 algorithm to encrypt the short link key to generate a short link code, and using the SM4 algorithm to encrypt the long link request content and store it in a database.

[0015] In some specific embodiments, the step of decrypting the short link address using the SM2 algorithm and the SM4 algorithm also includes: parsing the short link address input by the user into a short link domain name and a short link code, querying the corresponding database table according to the short link code, obtaining the decryption private key of the long link request content, and then using the SM2 algorithm to decrypt the short link code to obtain the short link key. If the decryption fails, the short link address is determined to be an illegal short link.

[0016] In some specific embodiments, the step of decrypting the short link address using the SM2 algorithm and the SM4 algorithm also includes: decrypting the long link request content using the SM4 algorithm according to the decrypted short link key to generate a long connection request content; if the decryption fails, the short link address is determined to be an illegal short link.

[0017] In some specific embodiments, it also includes: generating a digital signature according to a predetermined signature algorithm based on the decrypted short link key, long link request content and creation time, and comparing the digital signature with the signature stored in the database. If they are consistent, subsequent services are provided normally; if they are inconsistent, all subsequent operations are stopped.

[0018] In some specific embodiments, it also includes: based on the data in the database, counting and analyzing the short link click volume and short link data, and optimizing the marketing strategy and user experience according to the user behavior information.

[0019] To achieve the same invention purpose, the present application also provides a network service system for generating encrypted short links, including:

[0020] Information input module: used to receive short link generation information input by a user, wherein the short link generation information includes a long link;

[0021] Short link generation module: used to generate short links according to preset short link generation rules, using the access domain name of the long link as the short link domain name, using SM2 algorithm and SM4 algorithm to generate short links, and record the generated short links in the database;

[0022] Short link management module: used to monitor the timeliness and status of the short link;

[0023] Short link analysis module: used to receive the short link address input by the user, decrypt the short link address using the SM2 algorithm and the SM4 algorithm, and determine the legitimacy of the short link address based on the decrypted data.

[0024] Beneficial effects of the above technical solution:

[0025] This application converts long links into short links, making them more concise and beautiful, and convenient for sharing and spreading. In addition, short link services usually provide link click analysis functions, which can count the number of times a link is clicked, the geographical location of the click, and other information to track the effect of the link and user behavior. Short link services also allow you to customize the expiration time of short links to avoid using the same link for a long time.

[0026] This application can realize the service of converting custom long link parameters to short link, support long links carrying hundreds of parameters, and parse short links in real time to achieve response in seconds. In actual projects, users can only see the short link address, and the long link request content will not be displayed during the short link request process, making it completely black box for users and networks, which can effectively improve the security of the link and reduce the risk of malicious attacks and link hijacking. This encryption can protect the link content from being easily tampered with or leaked. Thereby protecting the user's privacy information and preventing sensitive information from being stolen or tampered with during transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0028] Figure 1 A flowchart of a network service method for generating an encrypted short link provided by an embodiment of the present invention;

[0029] Figure 2 A schematic diagram of the structure of a network service system for generating encrypted short links provided by an embodiment of the present invention;

[0030] Figure 3 A schematic diagram of a database construction of a network service system for generating encrypted short links is provided in accordance with an embodiment of the present invention. DETAILED DESCRIPTION

[0031] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0032] Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar symbols throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0033] Embodiment 1

[0034] An embodiment of the present invention provides a network service method for generating an encrypted short link, referring to Figure 1 As shown, including:

[0035] Receiving short link generation information input by a user, wherein the short link generation information includes a long link;

[0036] According to the preset short link generation rules, the access domain name of the long link is used as the short link domain name, the short link is generated by using the SM2 algorithm and the SM4 algorithm, and the generated short link is recorded in the database;

[0037] Monitoring the timeliness and status of the short link;

[0038] Receive the short link address input by the user, decrypt the short link address using the SM2 algorithm and the SM4 algorithm, and determine the legitimacy of the short link address based on the decrypted data.

[0039] In a specific embodiment of the present invention, the step of generating a short link using the SM2 algorithm and the SM4 algorithm includes: based on the long link input by the user, using encryption and digital signature algorithms to generate a unique, secure and anti-theft short link code to determine the short link, and intercepting the access domain name of the long link as the short link domain name, and using the parameters carried by the long link domain name as the long link request content; the short link generation information also includes the input time and the short link validity period, using the short link validity period as the validity time, and using the input time as the short link creation time.

[0040] In a specific embodiment of the present invention, the step of generating a short link using the SM2 algorithm and the SM4 algorithm further includes: generating a public key and a private key of the long link request content using the SM2 algorithm, and generating a short link key using the SM4 algorithm.

[0041] In a specific embodiment of the present invention, the step of generating a short link using the SM2 algorithm and the SM4 algorithm also includes: using the MD5 algorithm to sort the short link domain name, the long link request content and the short link key according to the ASCII code of the field name, and splicing them into a string using the Key-Value splicing format.

[0042] In a specific embodiment of the present invention, the step of generating a short link using the SM2 algorithm and the SM4 algorithm also includes: using the SM2 algorithm to encrypt the short link key to generate a short link code, and using the SM4 algorithm to encrypt the long link request content and store it in a database.

[0043] In a specific embodiment of the present invention, the step of decrypting the short link address using the SM2 algorithm and the SM4 algorithm also includes: parsing the short link address input by the user into a short link domain name and a short link code, querying the corresponding database table according to the short link code, obtaining the decryption private key of the long link request content, and then using the SM2 algorithm to decrypt the short link code to obtain the short link key. If the decryption fails, the short link address is determined to be an illegal short link.

[0044] In a specific embodiment of the present invention, the step of decrypting the short link address using the SM2 algorithm and the SM4 algorithm also includes: decrypting the long link request content using the SM4 algorithm according to the decrypted short link key to generate a long connection request content. If the decryption fails, the short link address is determined to be an illegal short link.

[0045] In a specific embodiment of the present invention, a digital signature is generated according to the decrypted short link key, long link request content and creation time according to a predetermined signature algorithm, and the digital signature is compared with the signature stored in the database. If they are consistent, subsequent services are provided normally, and if they are inconsistent, all subsequent operations are stopped.

[0046] In a specific embodiment of the present invention, based on the data in the database, short link click volume and short link data are counted and analyzed, and marketing strategies and user experience are optimized according to user behavior information.

[0047] This application converts long links into short links, making the links more concise and beautiful, and convenient for sharing and dissemination. For example, when posting on a platform that has restrictions on content length, there will be more editable text. Short link services usually provide link click analysis functions, which can count the number of times a link is clicked, the geographical location of the click, and other information to track the effectiveness of the link and user behavior. Short link services also provide customizable expiration times for short links, which can avoid using the same link for a long time. In addition, long links may contain some difficult-to-remember characters or sensitive information of users. Through short link services, they can be converted into short and easy-to-remember links, which are relatively safe and not easy to expose sensitive information of users, thereby improving user experience. In general, short link technology plays many roles in network applications, such as simplifying links, improving user experience, and tracking link effects.

[0048] Embodiment 2

[0049] An embodiment of the present invention provides a network service system for generating encrypted short links, referring to Figure 2 As shown, including:

[0050] Information input module 10: used to receive short link generation information input by a user, wherein the short link generation information includes a long link;

[0051] The short link generation module 20 is used to generate a short link according to a preset short link generation rule, using the access domain name of the long link as the short link domain name, using the SM2 algorithm and the SM4 algorithm, and recording the generated short link in the database;

[0052] Short link management module 30: used to monitor the timeliness and status of the short link;

[0053] The short link analysis module 40 is used to receive the short link address input by the user, decrypt the short link address using the SM2 algorithm and the SM4 algorithm, and determine the legitimacy of the short link address based on the decrypted data.

[0054] In some specific embodiments, the short link generation module 20 is used to perform the following steps: generate a unique, secure and anti-theft short link code based on the long link input by the user using an encryption and digital signature algorithm to determine the short link, and intercept the access domain name of the long link as the short link domain name, the long link domain name carries parameters as the long link request content, the short link validity period input by the user is used as the validity period, and the moment of the short link validity period input by the user is the creation time.

[0055] Furthermore, the generation of the short link is based on the long link input by the user, which generates a unique, secure and anti-theft short link code through encryption and digital signature, intercepts the access domain name of the long link as the parameter domain, the long link domain name carries the parameters as content, and the short link validity period entered by the user is used as the parameter usefulTime.

[0056] Furthermore, the public key and private key of the SM2 encryption algorithm, namely publicKey, privateKey, and the random key domainKey of the SM4 encryption algorithm are randomly generated.

[0057] Furthermore, the MD5 algorithm is used to sort the parameters domain, content, createTime, and domainKey from small to large according to the ASCII code of the field name (lexicographical order), and concatenated into a string String using the KeyValue concatenation format (i.e. key1value1key2value2...), for example: domainvaluecontentvaluecreateTimevaluedomainKeyvalue..., and the MD5 operation is performed on the String to generate the signature sign.

[0058] Furthermore, the domainKey is encrypted using the SM2 algorithm to generate a short chain code short_code, and the long link request content is encrypted using the SM4 algorithm and stored in the database as content, ensuring that the request link content is completely black box.

[0059] Further, the database table storage data structure reference Figure 3 shown.

[0060] Furthermore, when the user uses a short link to access, the system resolves the short link accessed by the user into the domain name domain and the short chain code short_code, queries the MySQL database table based on the unique short chain code short_code, obtains the request content decryption private key, and uses the SM2 algorithm to decrypt the short chain code short_code to obtain the parameter domainKey. If the decryption fails, it is considered that the short chain is not generated by the system and is an illegal short chain.

[0061] Furthermore, based on the decrypted parameter domainKey, the SM4 algorithm is used to decrypt the long link request content to generate the field content. If the decryption fails, it is also considered to be an illegal short link.

[0062] Furthermore, the short chain signature is verified, that is, based on the decrypted parameters domainKey, content, domain, createTime, a digital signature is generated according to the signature algorithm specified by the system and compared with the signature stored in the database to see if they are consistent. If they are consistent, it proves that the carried data has not been tampered with and can be used as a business parameter. If they are inconsistent, it is considered that the data has been tampered with or is a malicious attack, and all subsequent operations of the system are stopped.

[0063] Through the above description of the process from short link generation to short link access and analysis, long links are efficiently analyzed and converted into short links. The short link generation and analysis service adopts a microservice distributed service structure, and internally stores real-time data calculations through the MySql database. This ensures data security and ensures rapid update and calculation of real-time data; it supports the generation and analysis of massive short links through a distributed service structure.

[0064] This application can realize the service of converting custom long link parameters to short link, support long links carrying hundreds of parameters, and parse short links in real time to achieve response in seconds. In actual projects, users can only see the short link address, and the long link request content will not be displayed during the short link request process, making it completely black box for users and networks, which can effectively improve the security of the link and reduce the risk of malicious attacks and link hijacking. This encryption can protect the link content from being easily tampered with or leaked. Thereby protecting the user's privacy information and preventing sensitive information from being stolen or tampered with during transmission.

[0065] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

[0066] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referenced to each other. The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the functions in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing terminal device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1The steps of the functions specified in one or more boxes. Although the preferred embodiments of the embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they know the basic creative concept. Therefore, the attached claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention. Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or terminal device including a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0067] The method and device provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

[0068] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", "one specific embodiment" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0069] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A network service method for generating an encrypted short link, characterized in that: include: Receiving short link generation information input by a user, wherein the short link generation information includes a long link; According to the preset short link generation rules, the access domain name of the long link is used as the short link domain name, the short link is generated by using the SM2 algorithm and the SM4 algorithm, and the generated short link is recorded in the database; Monitoring the timeliness and status of the short link; Receive the short link address input by the user, decrypt the short link address using the SM2 algorithm and the SM4 algorithm, and determine the legitimacy of the short link address based on the decrypted data; The step of generating a short link using the SM2 algorithm and the SM4 algorithm includes: according to the long link input by the user, using the encryption and digital signature algorithm to generate a unique short link code that is secure and anti-theft to determine the short link, and intercepting the access domain name of the long link as the short link domain name, and using the parameters carried by the long link domain name as the long link request content; the short link generation information also includes the input time and the short link validity period, using the short link validity period as the validity time, and using the input time as the short link creation time; The step of generating a short link using the SM2 algorithm and the SM4 algorithm further includes: generating a public key and a private key of the long link request content using the SM2 algorithm, and generating a short link key using the SM4 algorithm; The step of generating a short link using the SM2 algorithm and the SM4 algorithm also includes: using the SM2 algorithm to encrypt the short link key to generate a short link code, and using the SM4 algorithm to encrypt the long link request content and store it in a database.

2. The network service method for generating an encrypted short link according to claim 1, characterized in that: The step of generating a short link using the SM2 algorithm and the SM4 algorithm also includes: sorting the short link domain name, the long link request content and the short link key according to the ASCII code of the field name, splicing them into a string using the Key-Value splicing format, and then signing the string using the MD5 algorithm.

3. The network service method for generating an encrypted short link according to claim 1, characterized in that: The step of decrypting the short link address using the SM2 algorithm and the SM4 algorithm also includes: parsing the short link address input by the user into a short link domain name and a short link code, querying the corresponding database table according to the short link code, obtaining the decryption private key of the long link request content, and then using the SM2 algorithm to decrypt the short link code to obtain the short link key. If the decryption fails, the short link address is determined to be an illegal short link.

4. The network service method for generating an encrypted short link according to claim 3, characterized in that: The step of decrypting the short link address using the SM2 algorithm and the SM4 algorithm also includes: decrypting the long link request content using the SM4 algorithm according to the decrypted short link key to generate the long connection request content; if the decryption fails, determining that the short link address is an illegal short link.

5. The network service method for generating an encrypted short link according to claim 3, characterized in that: Also includes: According to the decrypted short link key, long link request content and creation time, a digital signature is generated according to a predetermined signature algorithm, and the digital signature is compared with the signature stored in the database. If they are consistent, subsequent services are provided normally. If they are inconsistent, all subsequent operations are stopped.

6. The network service method for generating an encrypted short link according to claim 1, characterized in that: Also includes: Based on the data in the database, short link click volume and short link data are counted and analyzed, and marketing strategies and user experience are optimized based on user behavior information.

7. A network service system for generating encrypted short links, characterized in that: include: Information input module: used to receive short link generation information input by a user, wherein the short link generation information includes a long link; Short link generation module: used to generate short links according to preset short link generation rules, using the access domain name of the long link as the short link domain name, using SM2 algorithm and SM4 algorithm to generate short links, and record the generated short links in the database; Short link management module: used to monitor the timeliness and status of the short link; Short link analysis module: used to receive the short link address input by the user, decrypt the short link address using the SM2 algorithm and the SM4 algorithm, and determine the legitimacy of the short link address based on the decrypted data; The step of generating a short link using the SM2 algorithm and the SM4 algorithm includes: according to the long link input by the user, using the encryption and digital signature algorithm to generate a unique short link code that is secure and anti-theft to determine the short link, and intercepting the access domain name of the long link as the short link domain name, and using the parameters carried by the long link domain name as the long link request content; the short link generation information also includes the input time and the short link validity period, using the short link validity period as the validity time, and using the input time as the short link creation time; The step of generating a short link using the SM2 algorithm and the SM4 algorithm further includes: generating a public key and a private key of the long link request content using the SM2 algorithm, and generating a short link key using the SM4 algorithm; The step of generating a short link using the SM2 algorithm and the SM4 algorithm also includes: using the SM2 algorithm to encrypt the short link key to generate a short link code, and using the SM4 algorithm to encrypt the long link request content and store it in a database.