CN112883301A - Method and device for generating short link based on 55 system and storage medium - Google Patents

Method and device for generating short link based on 55 system and storage medium Download PDF

Info

Publication number
CN112883301A
CN112883301A CN202110150572.8A CN202110150572A CN112883301A CN 112883301 A CN112883301 A CN 112883301A CN 202110150572 A CN202110150572 A CN 202110150572A CN 112883301 A CN112883301 A CN 112883301A
Authority
CN
China
Prior art keywords
short link
characters
character string
generating
long chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110150572.8A
Other languages
Chinese (zh)
Inventor
吕智
宋子龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dingdang Fast Medicine Technology Group Co ltd
Original Assignee
Dingdang Fast Medicine Technology Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dingdang Fast Medicine Technology Group Co ltd filed Critical Dingdang Fast Medicine Technology Group Co ltd
Priority to CN202110150572.8A priority Critical patent/CN112883301A/en
Publication of CN112883301A publication Critical patent/CN112883301A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules

Abstract

The invention provides a short link generation method based on 55 systems, which comprises the following steps: pre-configuring a 55-system conversion condition; receiving a long chain connection transmitted by a user system, storing the long chain connection in a main key self-increment table, and converting the long chain connection into a 55-system character string based on the 55-system conversion condition; generating a short link based on the 55-ary character string; presetting a domain name, and outputting the domain name and the short link. The short link can be generated quickly through the scheme, the efficiency is high, the generated short link is good in confidentiality and not easy to master by others, and the scheme provided by the invention is high in safety.

Description

Method and device for generating short link based on 55 system and storage medium
Technical Field
The present invention relates to data processing technologies, and in particular, to a method and an apparatus for generating a short link based on a 55 th system, and a storage medium.
Background
Many company markets send short messages, information and the like to target customers in the process of promotion activities and order distribution, and short links are configured in the short messages and the information. In the prior art, most companies can send hundreds of short links or microblog short links through short messages and information during promotion activities, the short links can be manually configured when the number of the short links is small, and manual configuration cannot be performed quickly when the demand is increased greatly.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a storage medium for generating a short link based on a 55 system, which can quickly generate the short link, have high efficiency, generate a short link with high confidentiality and are not easy to master by others, so that the scheme of the invention has high safety.
In a first aspect of the embodiments of the present invention, a short link generation method based on 55 th system is provided, including:
pre-configuring a 55-system conversion condition;
receiving a long chain connection transmitted by a user system, storing the long chain connection in a main key self-increment table, and converting the long chain connection into a 55-system character string based on the 55-system conversion condition;
generating a short link based on the 55-ary character string;
presetting a domain name, and outputting the domain name and the short link.
Optionally, in a possible implementation manner of the first aspect, the method further includes:
and converting the 55-system character string into a number, and respectively storing the number and the long link in a cache.
Optionally, in a possible implementation manner of the first aspect, the generating a short link based on the 55-ary character string includes:
and carrying out base64 encryption processing on the 55-system character string to generate a short link.
Optionally, in a possible implementation manner of the first aspect, the preconfigured 55-ary conversion condition includes:
selecting 62 characters from 0 to 9, lower case a to Z and upper case A to Z, deleting part of the characters, and reserving 55 characters;
randomly permuting the 55 characters out of order;
generating a digit array by the 55 characters after the out-of-order arrangement, wherein each digit in the digit array is between 0 and 54;
and selecting characters corresponding to the numbers to form a character string.
In a second aspect of the embodiments of the present invention, a short link generator based on 55 th system is provided, including:
the configuration module is used for configuring 55-system conversion conditions in advance;
the receiving module is used for receiving a long chain connection transmitted by a user system, storing the long chain connection in a main key self-increment table, and converting the long chain connection into a 55-system character string based on the 55-system conversion condition;
a generating module, configured to generate a short link based on the 55-ary character string;
and the output module is used for presetting a domain name and outputting the domain name and the short link.
Optionally, in a possible implementation manner of the second aspect, the apparatus further includes:
and the conversion module is used for converting the 55-system character string into a number and respectively storing the number and the long link in a cache.
Optionally, in a possible implementation manner of the second aspect, the generating module further includes:
and the encryption unit is used for generating the short link after carrying out base64 encryption processing on the 55-system character string.
Optionally, in a possible implementation manner of the second aspect, the configuration module includes:
the selection unit is used for selecting 62 characters from 0 to 9, lower case letters a to Z and upper case letters A to Z, deleting part of the characters and reserving 55 characters;
the arrangement unit is used for randomly carrying out-of-order arrangement on the 55 characters;
the generating unit is used for generating a digit array from the 55 characters after the out-of-order arrangement, wherein each digit in the digit array is between 0 and 54;
and the selecting unit is used for selecting the corresponding characters to form a character string based on the numbers.
A third aspect of the present invention provides an electronic apparatus, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to cause the at least one processor to perform the method provided in any one of the first aspect.
A fourth aspect of the embodiments of the present invention provides a readable storage medium, in which a computer program is stored, and the computer program is used for implementing the method according to the first aspect of the present invention and various possible designs of the first aspect of the present invention when the computer program is executed by a processor.
The short link generation method, the short link generation device and the storage medium based on the 55 system provided by the invention can process the long link based on the pre-configured 55 system conversion condition, quickly generate the short link, have high efficiency, and generate the short link with better confidentiality which is not easy to be mastered by others, so that the scheme of the invention has higher safety.
Drawings
FIG. 1 is a flow chart of a method for generating a 55-ary based short link;
fig. 2 is a block diagram of a 55-ary short link generator.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the internal logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present application, "comprising" and "having" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that, in the present invention, "a plurality" means two or more. "and/or" is merely an association describing an associated object, meaning that three relationships may exist, for example, and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "comprises A, B and C" and "comprises A, B, C" means that all three of A, B, C comprise, "comprises A, B or C" means that one of A, B, C comprises, "comprises A, B and/or C" means that any 1 or any 2 or 3 of A, B, C comprises.
It should be understood that in the present invention, "B corresponding to a", "a corresponds to B", or "B corresponds to a" means that B is associated with a, and B can be determined from a. Determining B from a does not mean determining B from a alone, but may be determined from a and/or other information. And the matching of A and B means that the similarity of A and B is greater than or equal to a preset threshold value.
As used herein, "if" may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
The invention provides a short link generation method based on 55 systems, which is a flow chart shown in figure 1 and comprises the following steps:
and step S110, configuring 55-system conversion conditions in advance.
In step S110, the method further includes:
step S1101, selecting 62 characters from 0 to 9, lower case a to Z and upper case a to Z, deleting part of the characters, and reserving 55 characters. In this step, based on 62 characters in total, 0 to 9, lower case a to Z and upper case a to Z, some character strings which are easy to be confused, such as 0 and o, 1 and l, are removed, and only 55 character strings are reserved.
And step S1102, randomly arranging the 55 characters out of order. In the process of using the random out-of-order arrangement of characters once fixed, the characters cannot be modified. In the actual use process, the characters can be randomly sequenced again for other uses according to different actual needs and working conditions.
Step S1103, generating a number array from the 55 characters after the out-of-order arrangement, wherein each number in the array is between 0 and 54. For example, if a is arranged in 55 characters at 11 th, a corresponding number is 11, and a is arranged in 55 characters at 12 th, B corresponding number is 12.
And step S1104, selecting characters corresponding to the numbers to form character strings.
When the character string is restored, the position of each character in the character string is calculated, if the length of the character string is 5, the position number of the first character in the disordered character string is 55^4, the position number of the second character in the disordered character string is 55^3, the position number of the third character in the disordered character string is 55^2, the position number of the fourth character in the disordered character string is 55, the position number of the fifth character in the disordered character string is position number, and the converted numbers of the 5 characters are accumulated to form the integer number corresponding to the final character string.
And S120, receiving a long chain connection transmitted by a user system, storing the long chain connection in a main key self-increment table, and converting the long chain connection into a 55-system character string based on the 55-system conversion condition.
And step S130, generating a short link based on the 55-system character string. The 55-ary character string may be subjected to base64 encryption processing to generate a short link. Although the application adopts the disordered character strings to play a certain encryption role, in order to improve the confidentiality of the application, the application performs base64 encryption on the basis of the 55-system character strings, so that the character strings are less regular and are not easy to decipher.
And S140, presetting a domain name, and outputting the domain name and the short link.
In one embodiment, the method further comprises:
step S150, converting the 55-ary character string into a number, and storing the number and the long link in a cache respectively. According to the method and the device, when the short link is output, the long link corresponding to the number analyzed by the short link is added into the cache, and when a user accesses the short link, the user does not need to pass through the database, directly obtains the long link from the cache, directly adjusts the long link, and obtains data.
According to the technical scheme provided by the invention, the short link with the corresponding domain name is sent to the target end (client) in a short message and information mode, and the target end accesses and acquires information based on the short link, such as doctor inquiry recommendation information and prescription information.
The invention also provides a short link generator based on 55 systems, which is shown in a schematic structural diagram in fig. 2 and comprises:
the configuration module is used for configuring 55-system conversion conditions in advance;
the receiving module is used for receiving a long chain connection transmitted by a user system, storing the long chain connection in a main key self-increment table, and converting the long chain connection into a 55-system character string based on the 55-system conversion condition;
a generating module, configured to generate a short link based on the 55-ary character string;
and the output module is used for presetting a domain name and outputting the domain name and the short link.
In one embodiment, the apparatus further comprises:
and the conversion module is used for converting the 55-system character string into a number and respectively storing the number and the long link in a cache.
In one embodiment, the generating module further comprises:
and the encryption unit is used for generating the short link after carrying out base64 encryption processing on the 55-system character string.
In one embodiment, the configuration module comprises:
the selection unit is used for selecting 62 characters from 0 to 9, lower case letters a to Z and upper case letters A to Z, deleting part of the characters and reserving 55 characters;
the arrangement unit is used for randomly carrying out-of-order arrangement on the 55 characters;
the generating unit is used for generating a digit array from the 55 characters after the out-of-order arrangement, wherein each digit in the digit array is between 0 and 54;
and the selecting unit is used for selecting the corresponding characters to form a character string based on the numbers.
The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the readable storage medium may also reside as discrete components in a communication device. The readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present invention also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the device may read the execution instructions from the readable storage medium, and the execution of the execution instructions by the at least one processor causes the device to implement the methods provided by the various embodiments described above.
In the above embodiments of the terminal or the server, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for generating a short link based on 55 systems, comprising:
pre-configuring a 55-system conversion condition;
receiving a long chain connection transmitted by a user system, storing the long chain connection in a main key self-increment table, and converting the long chain connection into a 55-system character string based on the 55-system conversion condition;
generating a short link based on the 55-ary character string;
presetting a domain name, and outputting the domain name and the short link.
2. The short link generation method of claim 1,
the method further comprises the following steps:
and converting the 55-system character string into a number, and respectively storing the number and the long link in a cache.
3. The short link generation method of claim 1,
the generating of the short link based on the 55-ary character string comprises:
and carrying out base64 encryption processing on the 55-system character string to generate a short link.
4. The short link generation method of claim 1,
the preconfigured 55-ary transition conditions include:
selecting 62 characters from 0 to 9, lower case a to Z and upper case A to Z, deleting part of the characters, and reserving 55 characters;
randomly permuting the 55 characters out of order;
generating a digit array by the 55 characters after the out-of-order arrangement, wherein each digit in the digit array is between 0 and 54;
and selecting characters corresponding to the numbers to form a character string.
5. A 55-ary based short link generator, comprising:
the configuration module is used for configuring 55-system conversion conditions in advance;
the receiving module is used for receiving a long chain connection transmitted by a user system, storing the long chain connection in a main key self-increment table, and converting the long chain connection into a 55-system character string based on the 55-system conversion condition;
a generating module, configured to generate a short link based on the 55-ary character string;
and the output module is used for presetting a domain name and outputting the domain name and the short link.
6. Short link generation device according to claim 5,
the device further comprises:
and the conversion module is used for converting the 55-system character string into a number and respectively storing the number and the long link in a cache.
7. Short link generation device according to claim 5,
the generation module further comprises:
and the encryption unit is used for generating the short link after carrying out base64 encryption processing on the 55-system character string.
8. Short link generation device according to claim 5,
the configuration module includes:
the selection unit is used for selecting 62 characters from 0 to 9, lower case letters a to Z and upper case letters A to Z, deleting part of the characters and reserving 55 characters;
the arrangement unit is used for randomly carrying out-of-order arrangement on the 55 characters;
the generating unit is used for generating a digit array from the 55 characters after the out-of-order arrangement, wherein each digit in the digit array is between 0 and 54;
and the selecting unit is used for selecting the corresponding characters to form a character string based on the numbers.
9. An electronic device, characterized in that the electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to cause the at least one processor to perform the method of any one of claims 1-4.
10. A readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 4.
CN202110150572.8A 2021-02-03 2021-02-03 Method and device for generating short link based on 55 system and storage medium Pending CN112883301A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110150572.8A CN112883301A (en) 2021-02-03 2021-02-03 Method and device for generating short link based on 55 system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110150572.8A CN112883301A (en) 2021-02-03 2021-02-03 Method and device for generating short link based on 55 system and storage medium

Publications (1)

Publication Number Publication Date
CN112883301A true CN112883301A (en) 2021-06-01

Family

ID=76057065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110150572.8A Pending CN112883301A (en) 2021-02-03 2021-02-03 Method and device for generating short link based on 55 system and storage medium

Country Status (1)

Country Link
CN (1) CN112883301A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745722A (en) * 2022-06-15 2022-07-12 安徽创瑞信息技术有限公司 Short message platform security audit verification method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729409A (en) * 2017-09-26 2018-02-23 中国银联股份有限公司 A kind of short chain delivers a child into method and device
CN110134889A (en) * 2019-04-30 2019-08-16 中国联合网络通信集团有限公司 Short link generation method, device and server
CN110662184A (en) * 2019-08-15 2020-01-07 中国平安财产保险股份有限公司 Information pushing method and device, computer equipment and storage medium
CN110851748A (en) * 2019-10-14 2020-02-28 平安科技(深圳)有限公司 Short link generation method, server, storage medium and computer equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729409A (en) * 2017-09-26 2018-02-23 中国银联股份有限公司 A kind of short chain delivers a child into method and device
CN110134889A (en) * 2019-04-30 2019-08-16 中国联合网络通信集团有限公司 Short link generation method, device and server
CN110662184A (en) * 2019-08-15 2020-01-07 中国平安财产保险股份有限公司 Information pushing method and device, computer equipment and storage medium
CN110851748A (en) * 2019-10-14 2020-02-28 平安科技(深圳)有限公司 Short link generation method, server, storage medium and computer equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745722A (en) * 2022-06-15 2022-07-12 安徽创瑞信息技术有限公司 Short message platform security audit verification method and system
CN114745722B (en) * 2022-06-15 2022-08-12 安徽创瑞信息技术有限公司 Short message platform security audit verification method and system

Similar Documents

Publication Publication Date Title
US11640474B2 (en) Method and apparatus for operating database
CN109558748B (en) Data processing method and device, electronic equipment and storage medium
CN113343305B (en) Intersection calculating method, device, equipment and storage medium of privacy data
CN109064031B (en) Project affiliate credit evaluation method based on block chain, block chain and storage medium
CN109766479B (en) Data processing method and device, electronic equipment and storage medium
CN108268529B (en) Data summarization method and system based on business abstraction and multi-engine scheduling
CN112184367A (en) Order processing method and device
CN110489466B (en) Method and device for generating invitation code, terminal equipment and storage medium
CN110662184A (en) Information pushing method and device, computer equipment and storage medium
WO2017097159A1 (en) Method and apparatus for generating random character string
CN110019205B (en) Data storage and restoration method and device and computer equipment
CN112883301A (en) Method and device for generating short link based on 55 system and storage medium
CN111241596A (en) Block chain asset account recovery method and device
CN110929173A (en) Method, device, equipment and medium for identifying same person
CN112235104B (en) Data encryption transmission method, system, terminal and storage medium
CN110245520A (en) A kind of file enciphering method, file encryption device and terminal device
CN111866134B (en) Method and system for generating hash value and address of block chain transaction and storage medium
CN109872197B (en) Method and device for processing user information
CN109271797B (en) Method and system for improving security of database sensitive information
CN107391541A (en) A kind of real time data merging method and device
CN115860768A (en) Tracing method and device based on block chain and electronic equipment thereof
CN114039801B (en) Short link generation method, short link analysis system, short link analysis equipment and storage medium
CN115361376A (en) Government affair file uploading method and device, electronic equipment and storage medium
CN115242402A (en) Signature method, signature verification method and electronic equipment
CN106156169B (en) Discrete data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210601

RJ01 Rejection of invention patent application after publication