WO2020233033A1 - 信息交互方法、装置及存储介质 - Google Patents
信息交互方法、装置及存储介质 Download PDFInfo
- Publication number
- WO2020233033A1 WO2020233033A1 PCT/CN2019/120084 CN2019120084W WO2020233033A1 WO 2020233033 A1 WO2020233033 A1 WO 2020233033A1 CN 2019120084 W CN2019120084 W CN 2019120084W WO 2020233033 A1 WO2020233033 A1 WO 2020233033A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- information
- preset
- algorithm
- client
- server
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0807—Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0861—Generation of secret information including derivation or calculation of cryptographic keys or passwords
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/321—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority
- H04L9/3213—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority using tickets or tokens, e.g. Kerberos
Definitions
- This application relates to the field of computer technology, and mainly relates to an information interaction method, device and storage medium.
- the information exchange between the server and the client is based on the verification of the session object (Session object), that is, the session object is created by the server, and the user ID of the Session object is returned to the client.
- Session object the session object is created by the server
- the user ID of the Session object is returned to the client.
- a third party can obtain the user ID, a simulated login can be performed based on the user ID, thereby causing security risks. Therefore, how to improve the security of information interaction is a technical problem to be solved by those skilled in the art.
- the embodiments of the present application provide an information interaction method, device, and storage medium, which can improve the security of information interaction.
- an embodiment of the present application provides an information exchange method, which is applied to a client, where:
- the client separately encodes the first verification information and the preset algorithm according to a preset encoding algorithm to obtain the first encrypted information and the second encrypted information respectively;
- the client terminal generates the first encrypted information and the second encrypted information according to a preset token generation algorithm to obtain a first token
- the server determines that the first information to be verified matches the first verification information successfully, the client interacts with the server according to the first interaction information, and the first information to be verified is sent by the server
- the first decryption information is obtained by decoding the first decryption information according to the preset encoding algorithm, and the first decryption information is obtained by the server splitting the first token according to the preset token generation algorithm.
- the embodiments of this application provide another information exchange method, which is applied to a server, in which:
- the server receives a first interaction request sent by the client, the first interaction request includes a first token and first interaction information, and the first token is generated by the client according to a preset token generation algorithm
- the first encrypted information and the second encrypted information are generated, the first encrypted information is obtained by the client by encoding the first verification information according to a preset encoding algorithm, and the second encrypted information is obtained by the
- the client encodes the preset algorithm according to the preset encoding algorithm;
- the server splits the first token according to the preset token generation algorithm to obtain first decryption information and second decryption information;
- the server respectively decodes the first decrypted information and the second decrypted information according to the preset encoding algorithm to obtain the first to-be-verified information and the second to-be-verified information;
- the server interacts with the client according to the first interaction information .
- an embodiment of the present application provides an information interaction device applied to a client, where:
- the communication unit is configured to send the first verification information preset by the client to the server;
- the encryption unit is configured to respectively encode the first verification information and the preset algorithm according to the preset encoding algorithm to obtain the first encrypted information and the second encrypted information; Generating encrypted information and the second encrypted information to obtain a first token;
- the communication unit is further configured to send a first interaction request to the server, where the first interaction request includes the first token and first interaction information; if the server determines that the first to-be-verified information and the first interaction information If the verification information matches successfully, then interact with the server according to the first interaction information, the first to-be-verified information is obtained by the server decoding the first decrypted information according to the preset encoding algorithm, and the first A piece of decryption information is obtained by the server splitting the first token according to the preset token generation algorithm.
- the embodiments of the present application provide another information interaction device applied to a server, in which:
- the communication unit is configured to receive first verification information preset by the client and sent by the client; receive a first interaction request sent by the client, the first interaction request including a first token and first interaction information ,
- the first token is obtained by the client by generating the first encrypted information and the second encrypted information according to a preset token generation algorithm, and the first encrypted information is obtained by the client according to the preset encoding algorithm
- the first verification information is obtained by encoding
- the second encrypted information is obtained by encoding a preset algorithm by the client according to the preset encoding algorithm;
- the decryption unit is configured to split the first token according to the preset token generation algorithm to obtain first decryption information and second decryption information; according to the preset encoding algorithm, respectively A decryption information and the second decryption information are decoded to obtain the first information to be verified and the second information to be verified; if the second information to be verified matches the preset algorithm successfully, the first information to be verified is If the first verification information matches successfully, then interact with the client according to the first interaction information.
- the embodiments of the present application provide a client, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be processed by the above
- the program includes instructions for some or all of the steps described in the first aspect.
- an embodiment of the present application provides a server, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured by the processor When executed, the program includes instructions for some or all of the steps described in the second aspect.
- embodiments of the present application provide a computer non-volatile readable storage medium, wherein the computer non-volatile readable storage medium stores a computer program, wherein the computer program causes a computer to execute As part or all of the steps described in the first aspect, the computer includes a client.
- the embodiments of the present application provide another computer non-volatile readable storage medium, wherein the computer non-volatile readable storage medium stores a computer program, wherein the computer program causes the computer to execute To implement part or all of the steps described in the second aspect, the computer includes a server.
- the client and the server interact based on the token obtained by the preset encoding algorithm and the preset token generation algorithm, which improves the security of information interaction.
- FIG. 1 is a schematic structural diagram of an information interaction system provided by an embodiment of this application.
- FIG. 2 is a schematic flowchart of an information interaction method provided by an embodiment of this application.
- FIG. 3 is a schematic flowchart of another information interaction method provided by an embodiment of the application.
- FIG. 5 is a schematic diagram of the logical structure of an information interaction device provided by an embodiment of the application.
- FIG. 6 is a schematic diagram of the physical structure of an information interaction device provided by an embodiment of the application.
- FIG. 1 is a schematic diagram of a network architecture to which an embodiment of the present application is applied.
- the schematic diagram of the network architecture includes a server 101, a client 102, and a user 103. It should be noted that the number and form of each device in the schematic diagram of the network architecture shown in FIG. 1 are used for example, and do not constitute a limitation to the embodiment of the present application.
- the client 102 may be a personal computer (PC), a notebook computer, or a smart phone as shown in FIG. 1, and may also be an all-in-one machine, a handheld computer, a tablet computer (pad), a smart TV playback terminal, a vehicle-mounted terminal, or Electronic equipment such as portable equipment.
- PC-side clients such as all-in-one computers, and their operating systems can include, but are not limited to, Linux systems, Unix systems, Windows series systems (such as Windows XP, Windows 7, etc.), Mac OS X systems (Apple's operating system), etc. system.
- the operating system of a mobile client, such as a smart phone can include but is not limited to operating systems such as Android, IOS (Apple mobile phone operating system), and Window system.
- the server 101 is similar to a general computer architecture, including a processor, a hard disk, a memory, a system bus, etc., for providing services to the client 102.
- the server 101 may run on a single device or a client cluster composed of multiple servers, which is not limited here.
- the user 103 may be a user who actually operates the client 102 or a developer.
- the user 103 can input operation instructions to the client 102 to control the client 102 to perform corresponding operations.
- an embodiment of the present application provides a schematic flowchart of an information interaction method.
- the information interaction method is applied to the client. Specifically, as shown in Figure 2, an information interaction method, in which:
- S201 The client sends first verification information preset by the client to the server.
- the first verification information is used to verify the identity information of the user corresponding to the client, and the server may store the first verification information in the server after receiving the first verification information sent by the client.
- the first verification information is verification information preset by the client, which may include dynamic information and user information, etc., which is not limited here.
- the user information includes the identity identifier and the type corresponding to the identity identifier.
- the identity identifier can be an ID number, phone number, contact email address, etc., which is unique, and its type can include user name, phone number, email address, etc., which are not done here. limited.
- Dynamic information is used to verify the current interaction, that is, after each interaction is completed or when interactive information is submitted, a dynamic information is generated. It can be understood that by verifying the dynamic information, the security of information interaction can be further improved.
- the dynamic information may be time, for example, the last time the client submitted an interactive request to the server, the current time the client submitted an interactive request to the server, the last time the server responded to the client's interactive request, Or the time interval between the last time the server responded to the client's interaction request and the client sending the interaction request; the dynamic information may also be the number of interactions, the interaction frequency, etc., which are not limited here.
- S202 The client separately encodes the first verification information and the preset algorithm according to a preset encoding algorithm, to obtain first encrypted information and second encrypted information, respectively.
- the preset algorithm may include a Secure Hash Algorithm (SHA), such as SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512, and the preset algorithm is also It may include a message digest algorithm (Message-Digest Algorithm, MD5), and the preset algorithm may also include a hash-based message authentication code (Hash-based Message Authentication Code, HMAC) algorithm, etc., which is not limited here.
- SHA Secure Hash Algorithm
- MD5 message digest algorithm
- HMAC hash-based message authentication code
- the first encrypted information is obtained by the client encoding the first verification information according to the preset encoding algorithm
- the second encrypted information is obtained by the client encoding the preset algorithm according to the preset encoding algorithm.
- the preset encoding algorithm can be based on American Standard Code for Information Interchange (ASCII), ISO-8859-1, GB2312, GBK, UTF (Unicode Transformation Format)-8, UTF-16, base64, etc.
- ASCII American Standard Code for Information Interchange
- ISO-8859-1 ISO-8859-1
- GB2312 GB2312
- GBK GBK
- UTF Unicode Transformation Format-8
- UTF-16 base64
- One or more encoding algorithms are not limited here.
- ASCII is a computer coding system based on the Latin alphabet, mainly used to display modern English and other Western European languages. There are 128 ASCII in total, which are represented by the lower 7 bits of one byte. Among them, 0-31 are control characters such as line feed, carriage return, etc., and 32-126 are printing characters.
- ISO-8859-1 is a single-byte encoding used to extend ASCII. Its encoding range is 0x00-0xFF, 0x00-0x7F is completely consistent with ASCII, 0x80-0x9F are control characters, and 0xA0-0xFF is text symbol.
- GB2312 The full name of GB2312 is the Chinese character coded character set for information exchange. It is a double-byte code.
- the total code range is A1-F7.
- A1-A9 is the symbol area, which contains a total of 682 symbols.
- B0-F7 is the Chinese character area, including 6763 Chinese characters.
- GBK Chinese character inner code expansion specification
- Its coding range is 8140 ⁇ FEFE (without XX7F), there are 23940 code points in total, and it can represent 21003 Chinese characters.
- UTF-16 specifically defines the access method of Unicode characters in the computer.
- UTF-16 uses two bytes to represent the Unicode conversion format, which is a fixed-length representation method.
- UTF-8 uses a variable length technology, and each code area has a different code length. Different types of characters can consist of 1 to 6 bytes.
- Base64 is one of the most common encoding methods used to transmit 8Bit bytecode on the Internet, and can be used to transmit longer identification information in the HTTP environment. Specifically, the string can be converted according to the detailed specifications of the Multipurpose Internet Mail Extensions (MIME) in a series of numbered documents (Request For Comments, RFC).
- MIME Multipurpose Internet Mail Extensions
- This application uses ASCII encoding and base64 encoding as an example.
- the first verification information and the string corresponding to the preset algorithm are converted into binary according to the ASCII encoding, and then the first verification information and the preset algorithm are corresponding to the base64 encoding. Convert binary to string.
- the string before conversion is s13
- ASCII American Standard Code for Information Interchange
- binary 01110011 00110001 00110011
- change 6 If you divide them into a group, you can get 011100 110011 000100 110011. Since the computer is an 8-bit memory, the high-order 0 can get 00011100 00110011 00000100 00110011, which is 28 51 4 51 in decimal.
- the converted character string is: czEz.
- the first verification information and the preset algorithm are respectively encoded according to the preset encoding algorithm, that is, the first verification information and the preset algorithm are respectively encoded, which can improve the security of verifying the first verification information.
- S203 The client generates the first encrypted information and the second encrypted information according to a preset token generation algorithm to obtain a first token.
- the first token is verification information for information exchange between the client and the server.
- This application does not limit the preset token generation algorithm.
- Part of the characters in the first encrypted information and the second encrypted information can be extracted separately, such as the first and last characters, and then part of the characters are encoded; the first encrypted information can also be combined And the second encrypted information, and then encode the combined information.
- the client generates the first encrypted information and the second encrypted information according to a preset token generation algorithm to obtain the first token, including: the client generates the first token according to A preset combination algorithm combines the first encrypted information and the second encrypted information to obtain third encrypted information; the client encodes the third encrypted information according to the preset algorithm to obtain the first encrypted information Four encrypted information; the client combines the first encrypted information, the second encrypted information, and the fourth encrypted information according to the preset combination algorithm to obtain fifth encrypted information; the client According to a preset shortening algorithm, shortening processing is performed on the fifth encrypted information to obtain the first token.
- a preset token generation algorithm to obtain the first token, including: the client generates the first token according to A preset combination algorithm combines the first encrypted information and the second encrypted information to obtain third encrypted information; the client encodes the third encrypted information according to the preset algorithm to obtain the first encrypted information Four encrypted information; the client combines the first encrypted information, the second encrypted information, and the fourth encrypted information according to the preset combination algorithm to obtain fifth encrypted information; the client According
- the third encrypted information is information obtained by combining the first encrypted information and the second encrypted information according to a preset combination algorithm.
- This application does not limit the preset combination algorithm, and specific symbols or characters can be used for splicing, such as " +", "-", "/", "000”, etc., for example, the first encrypted information is kcds, the second encrypted information is josd, and the third encrypted information is kcds+josd.
- the preset combination algorithm can also first capitalize the first letter of each part, and lowercase the others, and then directly combine them. For example, the first encrypted information is kcds, the second encrypted information is josd, and the third encrypted information is KcdsJosd.
- the fourth encrypted information is information obtained by encoding the third encrypted information according to a preset algorithm.
- a preset algorithm reference may be made to the description of step S101, which will not be repeated here. It can be understood that the third encrypted information obtained by combining the encrypted first encrypted information and the second encrypted information makes the fourth encrypted information more secure and facilitates the improvement of the security of information interaction.
- the fifth encrypted information is information obtained by combining the first encrypted information, the second encrypted information, and the fourth encrypted information according to a preset combination algorithm.
- a preset combination algorithm refer to the description of the third encrypted information, which will not be repeated here.
- the first token is information obtained by shortening the fifth encrypted information according to a preset shortening algorithm.
- the fifth encrypted information includes multiple characters
- the client performs shortening processing on the fifth encrypted information to obtain the
- the first token includes: the client obtains the serial number and quantity corresponding to each character in the plurality of characters; the client obtains the character corresponding to the character according to the sequence and quantity of each character in the plurality of characters To obtain multiple weights; the client performs Huffman encoding on the multiple characters according to the multiple weights to obtain the first token.
- the method for obtaining the serial number may be based on the method in which the words arranged in alphabetical order are arranged in alphabetical order, that is, the serial number of each letter is determined according to the order of the alphabet.
- Huffman Coding also known as Huffman Coding
- Huffman Coding is a coding method.
- Huffman Coding is a variable word length coding. This method completely constructs the average of different prefixes based on the occurrence probability of characters The code word with the shortest length.
- the client first obtains the number of each character and the sequence number corresponding to each character, and then determines the weight of each character according to the number and sequence number of each character, and then performs Huffman encoding to obtain the first token.
- the character length of the first token is made smaller than the character length of the fifth encrypted information, which can improve the efficiency and security of information interaction.
- the client combines the first encrypted information and the second encrypted information to obtain the third encrypted information, and then the third encrypted information is encoded by a preset algorithm to obtain the fourth encrypted information.
- the first encrypted information, the second encrypted information, and the fourth encrypted information are combined to obtain the longer fifth encrypted information, and then the shorter first token is obtained by shortening the fifth encrypted information, thereby shortening the first token.
- the transmission length of a token improves the efficiency and security of interaction.
- the first token is combined, encrypted and regrouped, which can further improve the security of information interaction.
- S204 The client sends a first interaction request to the server, where the first interaction request includes the first token and first interaction information.
- the first interaction information may include a website address to be accessed, pre-stored information, etc., which are not limited here, and the first interaction information is used to instruct the server how to perform information interaction with the client.
- the first information to be verified is obtained by the server decoding the first decryption information according to the preset encoding algorithm, that is, the client encodes the first verification information according to the preset encoding algorithm to obtain the inverse of the first encrypted information. process.
- the first decryption information is obtained by splitting the first token by the server according to the preset token generation algorithm, that is, the client encrypts the first encrypted information and the second encrypted information according to the preset token generation algorithm. The reverse process of generating the first token is performed, which is not repeated here.
- the client separately encodes the first verification information and the preset algorithm preset by the client according to a preset encoding algorithm to obtain the first encrypted information and the second encrypted information, respectively. Then, the client generates the first encrypted information and the second encrypted information according to the preset token generation algorithm to obtain the first token, and sends a first interaction request including the first token and the first interaction information to the server. Then, the server decrypts the first token according to the preset token generation algorithm to obtain the first decrypted information, and decodes the first decrypted information according to the preset encoding algorithm to obtain the first information to be verified.
- the client interacts with the server according to the first interaction information. In this way, the client and the server interact based on the token obtained by the preset encoding algorithm and the preset token generation algorithm, which improves the security of information interaction.
- the method further includes: the client performs the dynamic information in the first verification information Update to obtain the second verification information; the client sends the second verification information to the server; the client encodes the second verification information according to the preset encoding algorithm to obtain the sixth encryption Information; the client generates the sixth encrypted information and the first encrypted information according to the preset token generation algorithm to obtain a second token; the client sends a second token to the server Interaction request, the second interaction request includes the second token and second interaction information; if the server determines that the second to-be-verified information matches the second verification information successfully, then the client The second interaction information interacts with the server, the second to-be-verified information is obtained by the server by decoding the second decryption information according to the preset encoding algorithm, and the second decryption information is obtained by the server according to the The preset token generation algorithm is obtained by splitting the second token.
- the dynamic information is used for the verification of the current interaction as described above.
- the second verification information is the updated first verification information.
- the sixth encrypted information can refer to the encoding steps of the first encrypted information and the second encrypted information
- the second token can refer to the description of the first token
- the second interactive information can refer to the description of the first interactive information
- the second decryption information can Refer to the description of the first decrypted information
- the second to-be-verified information can refer to the description of the first to-be-verified information, which will not be repeated here.
- the client updates the dynamic information in the first verification information to obtain the second verification information, and then encodes the second verification information according to the method of steps S202 and S203 to obtain the second token, so that the client can be based on the first verification information.
- the token exchanges information with the server. In this way, the verification information stored in the server is updated to prevent third parties from interacting with the server by using the original first token, which further improves the security of information interaction.
- the client updates the dynamic information in the first verification information to obtain the second verification information, including: The client obtains the request time for the client to send the first interaction request to the server; the client updates the dynamic information in the first verification information to the request time to obtain the second verification information.
- the request time of the first interaction request sent by the client and the server is taken as the dynamic information in the first verification information, that is, the request time of the last interaction request from the client to the server is taken as the dynamic information, and then the server Update the dynamic information to obtain the second verification information.
- the flexibility of dynamic information is improved, that is, the flexibility of the token is improved, and the security of information interaction is facilitated.
- FIG. 3 is a schematic flowchart of another information interaction method provided by an embodiment of the present application. The method is applied to a server. Specifically, as shown in FIG. Methods of information interaction, including:
- S301 The server receives the first verification information preset by the client and sent by the client.
- S302 The server receives a first interaction request sent by the client, where the first interaction request includes a first token and first interaction information.
- the first token is obtained by the client by generating the first encrypted information and the second encrypted information according to a preset token generation algorithm, and the first encrypted information is obtained by the client according to a preset encoding algorithm
- the first verification information is encoded
- the second encrypted information is obtained by the client encoding a preset algorithm according to the preset encoding algorithm.
- S303 The server splits the first token according to the preset token generation algorithm to obtain first decryption information and second decryption information.
- the first decryption information and the second decryption information are obtained by the server splitting the first token according to the preset token generation algorithm, that is, the client encrypts the first encrypted information and the second encrypted information according to the preset token generation algorithm.
- the inverse process of information generation to obtain the first token will not be repeated here.
- S304 The server respectively decodes the first decrypted information and the second decrypted information according to the preset encoding algorithm to obtain first to-be-verified information and second to-be-verified information.
- the first information to be verified and the second information to be verified are obtained by the server decoding the first decrypted information according to the preset encoding algorithm, that is, the client encodes the first verification information according to the preset encoding algorithm to obtain the first encrypted information
- the inverse process will not be repeated here.
- This application does not limit the method for verifying the first information to be verified and the first verification information.
- the dynamic information can be verified separately first, and if the dynamic information is successfully verified, the user information is verified separately, otherwise an exception is returned. If the user information is successfully verified, it is determined that the first to-be-verified information and the first verification information are successfully verified, otherwise an exception is returned.
- the server receives the first verification information and the first interaction request including the first token sent by the client, and splits the first token according to the preset token generation algorithm.
- the first decrypted information and the second decrypted information are obtained separately, and then the first decrypted information and the second decrypted information are respectively decoded according to a preset encoding algorithm to obtain the first to-be-verified information and the second to-be-verified information. If the second information to be verified matches the preset algorithm successfully, and the first information to be verified matches the first verification information successfully, the server interacts with the client according to the first interaction information in the first interaction request. In this way, the client and the server interact based on the token obtained by the preset encoding algorithm and the preset token generation algorithm, which improves the security of information interaction.
- the server performs extension processing on the first token according to the preset shortening algorithm to obtain fifth decryption information;
- the fifth decrypted information is split to obtain the first decrypted information, the second decrypted information, and the fourth decrypted information;
- the server separately performs the first decrypted information and the second decrypted information according to the preset encoding algorithm
- Information and the fourth decrypted information are decoded to obtain first information, second information, and third information respectively; if the second information matches the preset algorithm successfully, the server determines the second information Is the second information to be verified;
- the server combines the second information and the first information according to the preset combination algorithm to obtain the first combination information, and the server combines according to the preset
- the algorithm combines the second information and the third information to obtain the second combination information; if the first combination information matches the third information successfully, the server determines that the first information is The first information to be verified.
- the fifth decryption information is information obtained by the first token being extended according to the preset shortening algorithm, that is, the fifth information is the reverse process of the first token obtained by shortening according to the preset shortening algorithm.
- the first token includes multiple characters
- the server extends the first token according to the preset shortening algorithm to obtain fifth decryption information, including: The server performs Huffman decoding on each character in the plurality of characters to obtain a plurality of weights, and each weight corresponds to a character; the server obtains the plurality of characters according to the plurality of weights The sequence and quantity of each character; the server obtains the fifth decryption information according to the sequence and quantity of each character in the plurality of characters.
- Huffman decoding is the inverse process of Huffman coding.
- the server first performs Huffman decoding on the characters in the first token to obtain multiple weights, and then obtains the sequence and quantity of each character, and then obtains the fifth information according to the sequence and quantity of each character. In this way, restore The shortened character string is improved, and the accuracy of obtaining the fifth decrypted information is improved.
- the first decrypted information, the second decrypted information, and the fourth decrypted information are respectively obtained by splitting the fifth decrypted information according to the preset combination algorithm, that is, the first encrypted information, the second decrypted information are divided according to the preset combination algorithm.
- the first decrypted information, the second decrypted information, and the third decrypted information respectively decode the first decrypted information, the second decrypted information, and the fourth decrypted information according to the preset encoding algorithm.
- the algorithm, the first verification information, and the third encrypted information are encoded to obtain the inverse process of the first encrypted information, the second encrypted information, and the third encrypted information, respectively.
- the third encrypted information is combined information of the first encrypted information and the second encrypted information, and when the second information matches the preset algorithm successfully, it is determined that the second information matches the first encrypted information. Then, the server separately combines the second information and the first information, and the second information and the third information according to the preset combination algorithm to obtain the first combination information and the second combination information, respectively. If it is determined that the first combination information matches the third information successfully, it is determined that the third information matches the fourth encrypted information, and the first decrypted information is used as the first information to be verified.
- the first to-be-verified information is obtained. If the first to-be-verified information and the first verification information are successfully verified, the client is allowed to interact with the server, thereby further improving the information interaction. safety.
- the server may also obtain the token to be verified according to the method of steps S202 and S203. If the token to be verified matches the first token successfully, the client is allowed to interact with the server according to the first interaction information.
- the method further includes: the server receives second verification information sent by the client, and The second verification information is obtained by the client updating the dynamic information in the first verification information.
- the server can also update by referring to the update method of the second verification information. In this way, after the information interaction is completed, the verification information stored in the server is automatically updated, which improves the convenience of the update operation and the security of the information interaction .
- FIG. 4 is a sequence diagram of the execution of an information interaction system proposed in this application. As shown in Figure 4, it includes:
- S401 The client sends first verification information preset by the client to the server.
- S402 The client separately encodes the first verification information and the preset algorithm according to a preset encoding algorithm, to obtain first encrypted information and second encrypted information, respectively.
- S403 The client generates the first encrypted information and the second encrypted information according to a preset token generation algorithm to obtain a first token.
- S404 The client sends a first interaction request to the server, where the first interaction request includes the first token and first interaction information.
- S405 The server splits the first token according to the preset token generation algorithm to obtain first decryption information and second decryption information.
- S406 The server respectively decodes the first decrypted information and the second decrypted information according to the preset encoding algorithm to obtain first to-be-verified information and second to-be-verified information.
- the client encrypts the first verification information based on the preset encoding algorithm and the preset token generation algorithm to obtain the first token, and sends the first token including the first token to the server.
- the first interactive request Then, the server decrypts the first token based on the preset encoding algorithm and the preset token generation algorithm to obtain the first information to be verified. If the first information to be verified matches the first verification information successfully, the client is allowed to interact with the server according to the first interaction information in the first interaction request, thereby improving the security of information interaction.
- FIG. 5 is a schematic structural diagram of an information interaction device proposed in this application, and the device is applied to a client.
- the foregoing information interaction device 500 includes:
- the communication unit 501 is configured to send the first verification information preset by the client to the server;
- the encryption unit 502 is configured to respectively encode the first verification information and the preset algorithm according to a preset encoding algorithm to obtain the first encrypted information and the second encrypted information; Generating the first encrypted information and the second encrypted information to obtain a first token;
- the communication unit 501 is further configured to send a first interaction request to the server, where the first interaction request includes the first token and first interaction information; if the server determines that the first to-be-verified information and the first interaction information When the verification information is successfully matched, interact with the server according to the first interaction information, and the first information to be verified is obtained by the server by decoding the first decryption information according to the preset encoding algorithm, and The first decryption information is obtained by the server splitting the first token according to the preset token generation algorithm.
- the encryption unit 502 specifically uses According to the preset combination algorithm, the first encrypted information and the second encrypted information are combined to obtain the third encrypted information; according to the preset encoding algorithm, the third encrypted information is encoded to obtain the first Four encrypted information; according to the preset combination algorithm, the first encrypted information, the second encrypted information, and the fourth encrypted information are combined to obtain the fifth encrypted information; according to the preset shortening algorithm, The fifth encrypted information is shortened to obtain the first token.
- the fifth encrypted information includes multiple characters.
- the encryption unit 502 is specifically configured to Obtain the serial number and quantity corresponding to each character in the plurality of characters; obtain the weight corresponding to the character according to the sequence and quantity of each character in the plurality of characters to obtain multiple weights; The weight performs Huffman coding on each of the multiple characters to obtain the first token.
- the encryption unit 502 is further configured to update the dynamic information in the first verification information to obtain the first Two verification information; the communication unit 501 is further configured to send the second verification information to the server; the encryption unit 502 is further configured to encode the second verification information according to the preset encoding algorithm, Obtain sixth encrypted information; generate the sixth encrypted information and the first encrypted information according to the preset token generation algorithm to obtain a third token; the communication unit 501 is also configured to The server sends a second interaction request, and the second interaction request includes the second token and second interaction information; if the server determines that the second to-be-verified information matches the second verification information successfully, then according to the The second interaction information interacts with the server, the second to-be-verified information is obtained by the server by decoding the second decryption information according to the preset encoding algorithm, and the second decryption information is obtained by the server according to the The preset token generation algorithm is obtained by splitting the second token.
- the encryption unit 502 is specifically configured to obtain the information sent by the client to the server The request time of the first interaction request; the dynamic time in the first verification information is updated to the request time to obtain the second verification information.
- the device is applied to a server.
- the foregoing information interaction device 500 includes:
- the communication unit 501 is configured to receive first verification information preset by the client and sent by the client; receive a first interaction request sent by the client, the first interaction request including a first token and a first interaction Information, the first token is obtained by the client according to a preset token generation algorithm to generate the first encrypted information and the second encrypted information, and the first encrypted information is obtained by the client according to a preset encoding algorithm Obtained by encoding the first verification information, and the second encrypted information is obtained by encoding a preset algorithm by the client according to the preset encoding algorithm;
- the decryption unit 502 is configured to split the first token according to the preset token generation algorithm to obtain first decryption information and second decryption information; according to the preset encoding algorithm, respectively.
- the first decryption information and the second decryption information are decoded to obtain the first information to be verified and the second information to be verified; if the second information to be verified matches the preset algorithm successfully, the first information to be verified is If the first verification information matches successfully, then interact with the client according to the first interaction information.
- the decryption unit 502 is further configured to perform extension processing on the first token according to the preset shortening algorithm to obtain fifth decryption information; according to the preset combination algorithm, The fifth decryption information is split to obtain the first decryption information, the second decryption information, and the fourth decryption information; according to the preset encoding algorithm, the first decryption information and the second decryption information are respectively And the fourth decryption information are decoded to obtain the first information, the second information, and the third information respectively; if the second information matches the preset algorithm successfully, it is determined that the second information is the first information 2.
- the second information and the first information are combined to obtain the first combination information
- the second information and the first information are combined according to the preset combination algorithm
- the third information is combined to obtain second combined information; if the first combined information matches the third information successfully, it is determined that the first information is the first to-be-verified information.
- the first token includes a plurality of characters
- the The decryption unit 502 is specifically configured to perform Huffman decoding on each of the multiple characters to obtain multiple weights, each weight corresponding to a character; and obtain the multiple characters according to the multiple weights The sequence and quantity of each character in the plurality of characters; obtaining the fifth decryption information according to the sequence and quantity of each character in the plurality of characters.
- the communication unit 501 is further configured to receive second verification information sent by the client, and the first The second verification information is obtained by the client updating the dynamic information in the first verification information.
- FIG. 6 is a schematic structural diagram of another information interaction device provided by an embodiment of the present application, and the information interaction device is a client.
- the information interaction device 600 includes a processor 610, a memory 620, a communication interface 630, and one or more programs 640.
- the related functions implemented by the communication unit 501 shown in FIG. 5 may be implemented by the communication interface 630, and the related functions implemented by the encryption unit 502 shown in FIG. 5 may be implemented by the processor 610.
- the foregoing one or more programs 640 are stored in the foregoing memory 620 and are configured to be executed by the foregoing processor 610, and the foregoing program 640 includes instructions for executing the following steps:
- the server determines that the first to-be-verified information matches the first verification information successfully, it interacts with the server according to the first interaction information, and the first to-be-verified information is determined by the server according to the preset It is assumed that an encoding algorithm is obtained by decoding the first decryption information, and the first decryption information is obtained by splitting the first token by the server according to the preset token generation algorithm.
- the program 640 is specifically configured to execute Instructions for the following steps:
- shortening processing is performed on the fifth encrypted information to obtain the first token.
- the fifth encrypted information includes multiple characters.
- the program 640 is specifically used to execute the instructions of the following steps:
- Huffman coding is performed on each character of the plurality of characters according to the plurality of weights to obtain the first token.
- the program 640 is further configured to execute instructions of the following steps:
- the server determines that the second to-be-verified information matches the second verification information successfully, it interacts with the server according to the second interaction information, and the second to-be-verified information is determined by the server according to the preset It is assumed that the second decryption information is obtained by decoding the encoding algorithm, and the second decryption information is obtained by splitting the second token by the server according to the preset token generation algorithm.
- the program 640 is specifically configured to execute the instructions of the following steps:
- the dynamic time in the first verification information is updated to the requested time to obtain the second verification information.
- the information interaction device is applied to a server.
- the related functions implemented by the communication unit 501 shown in FIG. 5 may be implemented by the communication interface 630, and the related functions implemented by the decryption unit 503 shown in FIG. 5 may be implemented by the processor 610.
- the above-mentioned program 640 includes instructions for executing the following steps:
- a first interaction request sent by the client is received, the first interaction request includes a first token and first interaction information, and the first token is matched by the client according to a preset token generation algorithm.
- the encrypted information and the second encrypted information are generated, the first encrypted information is obtained by the client by encoding the first verification information according to a preset encoding algorithm, and the second encrypted information is obtained by the client according to The preset encoding algorithm is obtained by encoding the preset algorithm;
- the second information to be verified matches the preset algorithm successfully, and the first information to be verified matches the first verification information successfully, then interact with the client according to the first interaction information.
- the program 640 is also used to execute the instructions of the following steps:
- the second information and the first information are combined to obtain the first combination information, and the second information and the third information are performed according to the preset combination algorithm.
- the first combination information matches the third information successfully, it is determined that the first information is the first information to be verified.
- the first token includes a plurality of characters.
- the program 640 is specifically used to execute the instructions of the following steps:
- Huffman decoding is performed on each character in the plurality of characters to obtain a plurality of weights, and each weight corresponds to a character;
- the fifth decryption information is obtained according to the sequence and quantity of each character in the plurality of characters.
- the program 640 is further configured to execute instructions of the following steps:
- the embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for storing a computer program, and the computer program causes a computer to execute part or all of the steps of any method recorded in the method embodiment.
- the computer includes Client or server.
- the embodiments of the present application also provide a computer program product.
- the computer program product includes a non-transitory computer-readable storage medium storing a computer program.
- the computer program is operable to cause a computer to execute any method recorded in the method embodiments. Part or all of the steps.
- the computer program product may be a software installation package, and the computer includes a client or a server.
- the disclosed device may be implemented in other ways.
- the device embodiments described above are merely illustrative, for example, the division of units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or integrated into Another system, or some features can be ignored, or not implemented.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
- the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
- each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated unit can be realized in the form of hardware or software program mode.
- the integrated unit is implemented in the form of a software program model and sold or used as an independent product, it can be stored in a computer readable memory.
- the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, A number of instructions are included to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in the various embodiments of the present application.
- the aforementioned memory includes: U disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), mobile hard disk, magnetic disk, or optical disk and other media that can store program codes.
- the program can be stored in a computer-readable memory, and the memory can include: flash disk , ROM, RAM, magnetic disk or CD, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Storage Device Security (AREA)
Abstract
Description
| 索引 | 对应字符 | 索引 | 对应字符 | 索引 | 对应字符 | 索引 | 对应字符 |
| 0 | A | 17 | R | 34 | i | 51 | z |
| 1 | B | 18 | S | 35 | j | 52 | 0 |
| 2 | C | 19 | T | 36 | k | 53 | 1 |
| 3 | D | 20 | U | 37 | l | 54 | 2 |
| 4 | E | 21 | V | 38 | m | 55 | 3 |
| 5 | F | 22 | W | 39 | n | 56 | 4 |
| 6 | G | 23 | X | 40 | o | 57 | 5 |
| 7 | H | 24 | Y | 41 | p | 58 | 6 |
| 8 | I | 25 | Z | 42 | q | 59 | 7 |
| 9 | G | 26 | a | 43 | r | 60 | 8 |
| 10 | K | 27 | b | 44 | s | 61 | 9 |
| 11 | L | 28 | c | 45 | t | 62 | + |
| 12 | M | 29 | d | 46 | u | 63 | / |
| 13 | N | 30 | e | 47 | v | ||
| 14 | O | 31 | f | 48 | w | ||
| 15 | P | 32 | g | 49 | x | ||
| 16 | Q | 33 | h | 50 | y |
Claims (20)
- 一种信息交互方法,其特征在于,应用于客户端,所述方法包括:所述客户端向服务器发送所述客户端预先设置的第一验证信息;所述客户端按照预设编码算法,分别对所述第一验证信息和预设算法进行编码,分别得到第一加密信息和第二加密信息;所述客户端按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌;所述客户端向所述服务器发送第一交互请求,所述第一交互请求包括所述第一令牌和第一交互信息;若所述服务器确定第一待验证信息与所述第一验证信息匹配成功,则所述客户端根据所述第一交互信息与所述服务器进行交互,所述第一待验证信息由所述服务器按照所述预设编码算法对第一解密信息进行解码得到,所述第一解密信息由所述服务器按照所述预设令牌生成算法对所述第一令牌进行拆分得到。
- 根据权利要求1所述的方法,其特征在于,所述客户端按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌,包括:所述客户端按照预设组合算法,对所述第一加密信息和所述第二加密信息进行组合,得到第三加密信息;所述客户端按照所述预设编码算法,对所述第三加密信息进行编码,得到第四加密信息;所述客户端按照所述预设组合算法,对所述第一加密信息、所述第二加密信息和所述第四加密信息进行组合,得到第五加密信息;所述客户端按照预设缩短算法,对所述第五加密信息进行缩短处理,得到所述第一令牌。
- 根据权利要求2所述的方法,其特征在于,所述第五加密信息包括多个字符,所述客户端按照预设缩短算法,对所述第五加密信息进行缩短处理,得到所述第一令牌,包括:所述客户端获取所述多个字符中每一字符对应的序号和数量;所述客户端根据所述多个字符中每一字符的序列和数量获取所述字符对应的权值,得到多个权值;所述客户端根据所述多个权值对所述多个字符中每一字符进行哈夫曼编码,得到所述第一令牌。
- 根据权利要求1-3任一项所述的方法,其特征在于,在所述客户端根据所述第一交互信息与所述服务器进行交互之后,所述方法还包括:所述客户端对所述第一验证信息中的动态信息进行更新,得到第二验证信息;所述客户端向所述服务器发送所述第二验证信息;所述客户端按照所述预设编码算法,对所述第二验证信息进行编码,得到第六加密信息;所述客户端按照所述预设令牌生成算法,对所述第六加密信息和所述第二加密信息进行生成,得到第二令牌;所述客户端向所述服务器发送第二交互请求,所述第二交互请求包括所述第二令牌和第二交互信息;若所述服务器确定第二待验证信息与所述第二验证信息匹配成功,则所述客户端根据所述第二交互信息与所述服务器进行交互,所述第二待验证信息由所述服务器按照所述预设编码算法对第二解密信息进行解码得到,所述第二解密信息由所述服务器按照所述预设 令牌生成算法对所述第二令牌进行拆分得到。
- 根据权利要求4所述的方法,其特征在于,所述客户端对所述第一验证信息中的动态信息进行更新,得到第二验证信息,包括:所述客户端获取所述客户端向所述服务器发送所述第一交互请求的请求时间;所述客户端将所述第一验证信息中的动态时间更新为所述请求时间,得到所述第二验证信息。
- 一种信息交互方法,其特征在于,应用于服务器,所述方法包括:所述服务器接收客户端发送的所述客户端预先设置的第一验证信息;所述服务器接收所述客户端发送的第一交互请求,所述第一交互请求包括第一令牌和第一交互信息,所述第一令牌由所述客户端按照预设令牌生成算法对第一加密信息和第二加密信息进行生成得到,所述第一加密信息由所述客户端按照预设编码算法对所述第一验证信息进行编码得到,所述第二加密信息由所述客户端按照所述预设编码算法对预设算法进行编码得到;所述服务器按照所述预设令牌生成算法,对所述第一令牌进行拆分,得到第一解密信息和第二解密信息;所述服务器按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息进行解码,得到第一待验证信息和第二待验证信息;若所述第二待验证信息与预设算法匹配成功,所述第一待验证信息与所述第一验证信息匹配成功,则所述服务器根据所述第一交互信息与所述客户端进行交互。
- 根据权利要求6所述的方法,其特征在于,所述服务器按照所述预设令牌生成算法,对所述第一令牌进行拆分,得到第一解密信息和第二解密信息,包括:所述服务器按照预设缩短算法,对所述第一令牌进行延长处理,得到第五解密信息;所述服务器按照预设组合算法,对所述第五解密信息进行拆分,得到第一解密信息、第二解密信息和第四解密信息;所述服务器按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息进行解码,得到第一待验证信息和第二待验证信息,包括:所述服务器按照所述预设编码算法,分别对所述第一解密信息、所述第二解密信息和所述第四解密信息进行解码,分别得到第一信息、第二信息和第三信息;若所述第二信息与所述预设算法匹配成功,则所述服务器确定所述第二信息为所述第二待验证信息;所述服务器按照预设组合算法,对所述第二信息和所述第一信息进行组合,得到第一组合信息,所述服务器按照所述预设组合算法,对所述第二信息和所述第三信息进行组合,得到第二组合信息;若所述第一组合信息与所述第三信息匹配成功,则所述服务器确定所述第一信息为所述第一待验证信息。
- 根据权利要求7所述的方法,其特征在于,所述第一令牌包括多个字符,所述服务器按照预设缩短算法,对所述第一令牌进行延长处理,得到第五解密信息,包括:所述服务器对所述多个字符中每一字符进行哈夫曼解码,以得到多个权值,每一权值对应一个字符;所述服务器根据所述多个权值获取所述多个字符中每一字符的序列和数量;所述服务器根据所述多个字符中每一字符的序列和数量获取所述第五解密信息。
- 一种信息交互装置,其特征在于,应用于客户端,所述装置包括:通信单元,用于向服务器发送所述客户端预先设置的第一验证信息;加密单元,用于按照预设编码算法,分别对所述第一验证信息和预设算法进行编码,分别得到第一加密信息和第二加密信息;按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌;通信单元,还用于向所述服务器发送第一交互请求,所述第一交互请求包括所述第一令牌和第一交互信息;若所述服务器确定第一待验证信息与所述第一验证信息匹配成功,则根据所述第一交互信息与所述服务器进行交互,所述第一待验证信息由所述服务器按照所述预设编码算法对第一解密信息进行解码得到,所述第一解密信息由所述服务器按照所述预设令牌生成算法对所述第一令牌进行拆分得到。
- 根据权利要求9所述的装置,其特征在于,所述加密单元在按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌时,具体用于:按照预设组合算法,对所述第一加密信息和所述第二加密信息进行组合,得到第三加密信息;按照所述预设编码算法,对所述第三加密信息进行编码,得到第四加密信息;按照所述预设组合算法,对所述第一加密信息、所述第二加密信息和所述第四加密信息进行组合,得到第五加密信息;按照预设缩短算法,对所述第五加密信息进行缩短处理,得到所述第一令牌。
- 根据权利要求10所述的装置,其特征在于,所述第五加密信息包括多个字符,所述加密单元在按照预设缩短算法,对所述第五加密信息进行缩短处理,得到所述第一令牌时,具体用于:获取所述多个字符中每一字符对应的序号和数量;根据所述多个字符中每一字符的序列和数量获取所述字符对应的权值,得到多个权值;根据所述多个权值对所述多个字符中每一字符进行哈夫曼编码,得到所述第一令牌。
- 根据权利要求9-11任一项所述的装置,其特征在于,所述加密单元,还用于在根据所述第一交互信息与所述服务器进行交互之后,对所述第一验证信息中的动态信息进行更新,得到第二验证信息;所述通信单元,还用于向所述服务器发送所述第二验证信息;所述加密单元,还用于按照所述预设编码算法,对所述第二验证信息进行编码,得到第六加密信息;按照所述预设令牌生成算法,对所述第六加密信息和所述第二加密信息进行生成,得到第二令牌;所述通信单元,还用于向所述服务器发送第二交互请求,所述第二交互请求包括所述第二令牌和第二交互信息;若所述服务器确定第二待验证信息与所述第二验证信息匹配成功,根据所述第二交互信息与所述服务器进行交互,所述第二待验证信息由所述服务器按照所述预设编码算法对第二解密信息进行解码得到,所述第二解密信息由所述服务器按照所述预设令牌生成算法对所述第二令牌进行拆分得到。
- 根据权利要求12所述的装置,其特征在于,所述加密单元在对所述第一验证信息中的动态信息进行更新,得到第二验证信息时,具体用于:获取向所述服务器发送所述第一交互请求的请求时间;将所述第一验证信息中的动态时间更新为所述请求时间,得到所述第二验证信息。
- 一种信息交互装置,其特征在于,应用于服务器,所述装置包括:通信单元,用于接收客户端发送的所述客户端预先设置的第一验证信息;接收所述客户端发送的第一交互请求,所述第一交互请求包括第一令牌和第一交互信息,所述第一令牌由所述客户端按照预设令牌生成算法对第一加密信息和第二加密信息进行生成得到,所述第一加密信息由所述客户端按照预设编码算法对所述第一验证信息进行编码得到,所述 第二加密信息由所述客户端按照所述预设编码算法对预设算法进行编码得到;解密单元,用于按照所述预设令牌生成算法,对所述第一令牌进行拆分,得到第一解密信息和第二解密信息;按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息进行解码,得到第一待验证信息和第二待验证信息;若所述第二待验证信息与预设算法匹配成功,所述第一待验证信息与所述第一验证信息匹配成功,则根据所述第一交互信息与所述客户端进行交互。
- 根据权利要求14所述的装置,其特征在于,所述解密单元在按照所述预设令牌生成算法,对所述第一令牌进行拆分,得到第一解密信息和第二解密信息时,具体用于:按照预设缩短算法,对所述第一令牌进行延长处理,得到第五解密信息;按照预设组合算法,对所述第五解密信息进行拆分,得到第一解密信息、第二解密信息和第四解密信息;所述解密单元在按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息进行解码,得到第一待验证信息和第二待验证信息时,具体用于:按照所述预设编码算法,分别对所述第一解密信息、所述第二解密信息和所述第四解密信息进行解码,分别得到第一信息、第二信息和第三信息;若所述第二信息与所述预设算法匹配成功,则确定所述第二信息为所述第二待验证信息;按照预设组合算法,对所述第二信息和所述第一信息进行组合,得到第一组合信息,按照所述预设组合算法,对所述第二信息和所述第三信息进行组合,得到第二组合信息;若所述第一组合信息与所述第三信息匹配成功,则确定所述第一信息为所述第一待验证信息。
- 根据权利要求15所述的装置,其特征在于,所述第一令牌包括多个字符,所述解密单元在按照预设缩短算法,对所述第一令牌进行延长处理,得到第五解密信息时,具体用于:对所述多个字符中每一字符进行哈夫曼解码,以得到多个权值,每一权值对应一个字符;根据所述多个权值获取所述多个字符中每一字符的序列和数量;根据所述多个字符中每一字符的序列和数量获取所述第五解密信息。
- 一种信息交互装置,其特征在于,包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行以下步骤的指令:向服务器发送预先设置的第一验证信息;按照预设编码算法,分别对所述第一验证信息和预设算法进行编码,分别得到第一加密信息和第二加密信息;按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌;向所述服务器发送第一交互请求,所述第一交互请求包括所述第一令牌和第一交互信息;若所述服务器确定第一待验证信息与所述第一验证信息匹配成功,则根据所述第一交互信息与所述服务器进行交互,所述第一待验证信息由所述服务器按照所述预设编码算法对第一解密信息进行解码得到,所述第一解密信息由所述服务器按照所述预设令牌生成算法对所述第一令牌进行拆分得到。
- 根据权利要求17所述的装置,其特征在于,在所述按照预设令牌生成算法,对所 述第一加密信息和所述第二加密信息进行生成,得到第一令牌时,所述程序具体包括用于执行以下步骤的指令:按照预设组合算法,对所述第一加密信息和所述第二加密信息进行组合,得到第三加密信息;按照所述预设编码算法,对所述第三加密信息进行编码,得到第四加密信息;按照所述预设组合算法,对所述第一加密信息、所述第二加密信息和所述第四加密信息进行组合,得到第五加密信息;按照预设缩短算法,对所述第五加密信息进行缩短处理,得到所述第一令牌。
- 一种信息交互装置,其特征在于,包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行以下步骤的指令:接收客户端发送的所述客户端预先设置的第一验证信息;接收所述客户端发送的第一交互请求,所述第一交互请求包括第一令牌和第一交互信息,所述第一令牌由所述客户端按照预设令牌生成算法对第一加密信息和第二加密信息进行生成得到,所述第一加密信息由所述客户端按照预设编码算法对所述第一验证信息进行编码得到,所述第二加密信息由所述客户端按照所述预设编码算法对预设算法进行编码得到;按照所述预设令牌生成算法,对所述第一令牌进行拆分,得到第一解密信息和第二解密信息;按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息进行解码,得到第一待验证信息和第二待验证信息;若所述第二待验证信息与预设算法匹配成功,所述第一待验证信息与所述第一验证信息匹配成功,则根据所述第一交互信息与所述客户端进行交互。
- 一种计算机非易失性可读存储介质,其特征在于,所述计算机非易失性可读存储介质存储计算机程序,所述计算机程序使得计算机执行以实现权利要求1-8任一项所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910423011.3A CN110224999B (zh) | 2019-05-20 | 2019-05-20 | 信息交互方法、装置及存储介质 |
| CN201910423011.3 | 2019-05-20 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020233033A1 true WO2020233033A1 (zh) | 2020-11-26 |
Family
ID=67821576
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/120084 Ceased WO2020233033A1 (zh) | 2019-05-20 | 2019-11-22 | 信息交互方法、装置及存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN110224999B (zh) |
| WO (1) | WO2020233033A1 (zh) |
Cited By (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112637225A (zh) * | 2020-12-28 | 2021-04-09 | 厦门市美亚柏科信息股份有限公司 | 一种数据发送方法、接收方法、客户端及服务端 |
| CN113301432A (zh) * | 2021-05-14 | 2021-08-24 | 海信视像科技股份有限公司 | 显示设备、终端设备及通信连接方法 |
| CN113641475A (zh) * | 2021-08-16 | 2021-11-12 | 京东科技控股股份有限公司 | 服务过滤方法、装置、电子设备与存储介质 |
| CN114301683A (zh) * | 2021-12-29 | 2022-04-08 | 四创科技有限公司 | 一种保证令牌安全性的方法与系统 |
| CN114301710A (zh) * | 2021-12-31 | 2022-04-08 | 中国邮政储蓄银行股份有限公司 | 确定报文是否被篡改的方法、密管平台和密管系统 |
| CN114417786A (zh) * | 2022-01-19 | 2022-04-29 | 平安医疗健康管理股份有限公司 | 一种数据处理方法、装置、电子设备及存储介质 |
| CN114461912A (zh) * | 2022-02-09 | 2022-05-10 | 中国农业银行股份有限公司 | 一种信息处理方法、装置、电子设备及存储介质 |
| CN115550033A (zh) * | 2022-09-29 | 2022-12-30 | 数字浙江技术运营有限公司 | 小程序授权代理控制方法、装置、电子设备和存储介质 |
| CN115643023A (zh) * | 2022-10-12 | 2023-01-24 | 武汉光庭信息技术股份有限公司 | 一种身份加密认证方法、系统、电子设备及存储介质 |
| CN115794964A (zh) * | 2022-11-30 | 2023-03-14 | 北京火山引擎科技有限公司 | 一种数据验证方法、装置、计算机设备和存储介质 |
| CN116192333A (zh) * | 2023-01-31 | 2023-05-30 | 支付宝(杭州)信息技术有限公司 | 生僻字传输方法、装置、电子设备与计算机存储介质 |
| CN116244720A (zh) * | 2023-01-05 | 2023-06-09 | 浙江诺诺网络科技有限公司 | 一种信息数据处理方法、装置、设备及存储介质 |
| CN116701895A (zh) * | 2023-06-27 | 2023-09-05 | 中国建设银行股份有限公司 | 信息比对方法、装置和计算机设备 |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110224999B (zh) * | 2019-05-20 | 2022-02-18 | 深圳壹账通智能科技有限公司 | 信息交互方法、装置及存储介质 |
| CN111131284B (zh) * | 2019-12-30 | 2022-07-01 | 飞天诚信科技股份有限公司 | 信息验证方法、装置、电子设备及计算机可读存储介质 |
| CN112583807A (zh) * | 2020-12-04 | 2021-03-30 | 锐捷网络股份有限公司 | 一种验证方法、装置、电子设备及存储介质 |
| CN113268752A (zh) * | 2021-05-24 | 2021-08-17 | 深圳Tcl新技术有限公司 | 一种数据管理方法、装置、设备和存储介质 |
| CN114065266B (zh) * | 2021-11-29 | 2025-05-16 | 深圳市普渡科技有限公司 | 一种用户令牌生成方法、用户令牌验证方法及相关设备 |
| CN116036610A (zh) * | 2023-01-06 | 2023-05-02 | 不鸣科技(杭州)有限公司 | 基于数据验证的反外挂方法、装置及存储介质 |
| CN116185240A (zh) * | 2023-03-10 | 2023-05-30 | 北京百度网讯科技有限公司 | 一种信息交互方法及装置 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150026468A1 (en) * | 2013-07-17 | 2015-01-22 | Wowza Media Systems, LLC | Token-based security for links to media streams |
| CN104753953A (zh) * | 2015-04-13 | 2015-07-01 | 成都双奥阳科技有限公司 | 访问控制系统 |
| CN106357409A (zh) * | 2016-09-06 | 2017-01-25 | 中国银联股份有限公司 | 安全性信息交互系统及方法 |
| CN109194484A (zh) * | 2018-08-14 | 2019-01-11 | 中国科学院信息工程研究所 | 一种基于共享密钥的令牌跨域传输方法 |
| CN110224999A (zh) * | 2019-05-20 | 2019-09-10 | 深圳壹账通智能科技有限公司 | 信息交互方法、装置及存储介质 |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10277569B1 (en) * | 2015-12-03 | 2019-04-30 | Amazon Technologies, Inc. | Cross-region cache of regional sessions |
| CN108776923A (zh) * | 2018-06-05 | 2018-11-09 | 深圳壹账通智能科技有限公司 | 订单支付方法、系统、计算机设备和存储介质 |
| CN108809988A (zh) * | 2018-06-14 | 2018-11-13 | 北京中电普华信息技术有限公司 | 一种请求的认证方法及系统 |
| CN109150910A (zh) * | 2018-10-11 | 2019-01-04 | 平安科技(深圳)有限公司 | 登录令牌生成及验证方法、装置及存储介质 |
| CN109347835B (zh) * | 2018-10-24 | 2021-09-07 | 苏州科达科技股份有限公司 | 信息传输方法、客户端、服务器以及计算机可读存储介质 |
-
2019
- 2019-05-20 CN CN201910423011.3A patent/CN110224999B/zh active Active
- 2019-11-22 WO PCT/CN2019/120084 patent/WO2020233033A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150026468A1 (en) * | 2013-07-17 | 2015-01-22 | Wowza Media Systems, LLC | Token-based security for links to media streams |
| CN104753953A (zh) * | 2015-04-13 | 2015-07-01 | 成都双奥阳科技有限公司 | 访问控制系统 |
| CN106357409A (zh) * | 2016-09-06 | 2017-01-25 | 中国银联股份有限公司 | 安全性信息交互系统及方法 |
| CN109194484A (zh) * | 2018-08-14 | 2019-01-11 | 中国科学院信息工程研究所 | 一种基于共享密钥的令牌跨域传输方法 |
| CN110224999A (zh) * | 2019-05-20 | 2019-09-10 | 深圳壹账通智能科技有限公司 | 信息交互方法、装置及存储介质 |
Cited By (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112637225A (zh) * | 2020-12-28 | 2021-04-09 | 厦门市美亚柏科信息股份有限公司 | 一种数据发送方法、接收方法、客户端及服务端 |
| CN112637225B (zh) * | 2020-12-28 | 2023-04-14 | 厦门市美亚柏科信息股份有限公司 | 一种数据发送方法、接收方法、客户端及服务端 |
| CN113301432A (zh) * | 2021-05-14 | 2021-08-24 | 海信视像科技股份有限公司 | 显示设备、终端设备及通信连接方法 |
| CN113641475A (zh) * | 2021-08-16 | 2021-11-12 | 京东科技控股股份有限公司 | 服务过滤方法、装置、电子设备与存储介质 |
| CN114301683A (zh) * | 2021-12-29 | 2022-04-08 | 四创科技有限公司 | 一种保证令牌安全性的方法与系统 |
| CN114301683B (zh) * | 2021-12-29 | 2024-05-10 | 四创科技有限公司 | 一种保证令牌安全性的方法与系统 |
| CN114301710B (zh) * | 2021-12-31 | 2024-04-26 | 中国邮政储蓄银行股份有限公司 | 确定报文是否被篡改的方法、密管平台和密管系统 |
| CN114301710A (zh) * | 2021-12-31 | 2022-04-08 | 中国邮政储蓄银行股份有限公司 | 确定报文是否被篡改的方法、密管平台和密管系统 |
| CN114417786A (zh) * | 2022-01-19 | 2022-04-29 | 平安医疗健康管理股份有限公司 | 一种数据处理方法、装置、电子设备及存储介质 |
| CN114461912A (zh) * | 2022-02-09 | 2022-05-10 | 中国农业银行股份有限公司 | 一种信息处理方法、装置、电子设备及存储介质 |
| CN115550033A (zh) * | 2022-09-29 | 2022-12-30 | 数字浙江技术运营有限公司 | 小程序授权代理控制方法、装置、电子设备和存储介质 |
| CN115643023A (zh) * | 2022-10-12 | 2023-01-24 | 武汉光庭信息技术股份有限公司 | 一种身份加密认证方法、系统、电子设备及存储介质 |
| CN115794964A (zh) * | 2022-11-30 | 2023-03-14 | 北京火山引擎科技有限公司 | 一种数据验证方法、装置、计算机设备和存储介质 |
| CN116244720A (zh) * | 2023-01-05 | 2023-06-09 | 浙江诺诺网络科技有限公司 | 一种信息数据处理方法、装置、设备及存储介质 |
| CN116192333A (zh) * | 2023-01-31 | 2023-05-30 | 支付宝(杭州)信息技术有限公司 | 生僻字传输方法、装置、电子设备与计算机存储介质 |
| CN116701895A (zh) * | 2023-06-27 | 2023-09-05 | 中国建设银行股份有限公司 | 信息比对方法、装置和计算机设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110224999B (zh) | 2022-02-18 |
| CN110224999A (zh) | 2019-09-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2020233033A1 (zh) | 信息交互方法、装置及存储介质 | |
| CN111177801B (zh) | 电子文档的签章方法、装置、存储介质和电子设备 | |
| CN107612692B (zh) | 一种信息处理方法、装置及存储介质 | |
| CN113486379B (zh) | 信息的加密方法、装置、介质及电子设备 | |
| CN117278211B (zh) | 基于内容分发网络的域名加密方法、解密方法和装置 | |
| CN113111341B (zh) | 账号共享、登录方法和装置 | |
| CN113761566B (zh) | 一种数据处理方法和装置 | |
| CN112235104B (zh) | 一种数据加密传输方法、系统、终端及存储介质 | |
| CN107391277A (zh) | 信息处理方法和装置 | |
| CN113517982B (zh) | 口令的生成方法、口令的执行方法及终端 | |
| US20170034132A1 (en) | System and method for optimizing the transmission of data associated to an impersonal identifier of the receiver | |
| CN108512657B (zh) | 一种密码生成方法及装置 | |
| JP5956092B1 (ja) | サーバ装置、情報管理システム、情報管理方法、及びコンピュータプログラム | |
| CN116136844A (zh) | 实体标识信息的生成方法、装置、介质及电子设备 | |
| CN113824727B (zh) | 网页登录验证方法、装置、服务器及存储介质 | |
| CN112073174B (zh) | 通讯账号解密方法、装置、设备、存储介质及信息交互系统 | |
| CN107729345A (zh) | 网站数据处理方法、装置、网站数据处理平台及存储介质 | |
| US12542775B2 (en) | Secure file transfer | |
| CN111065094B (zh) | 通讯录传输方法、装置、存储介质及电子设备 | |
| HK1246034B (zh) | 口令的生成方法、口令的执行方法及终端 | |
| CN115643002A (zh) | 业务处理方法、装置及存储介质 | |
| CN106156648B (zh) | 敏感操作处理方法和装置 | |
| CN107508782A (zh) | 语音客服中认证用户身份的方法及装置 | |
| KR20230124271A (ko) | 클라우드 기반의 문서 공유 서비스에서, 허가되지 않은 글꼴이 적용된 문서 파일에 대한 저장 및 공유 처리를 수행하기 위한 문서 공유 서비스 서버 및 그 동작 방법 | |
| CN118551357A (zh) | 一种通用唯一标识符的生成与验证方法和装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19929980 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19929980 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18/03/2022) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19929980 Country of ref document: EP Kind code of ref document: A1 |