WO2020233033A1 - 信息交互方法、装置及存储介质 - Google Patents

信息交互方法、装置及存储介质 Download PDF

Info

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
Application number
PCT/CN2019/120084
Other languages
English (en)
French (fr)
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Publication of WO2020233033A1 publication Critical patent/WO2020233033A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic 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/321Cryptographic 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/3213Cryptographic 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

信息交互方法、装置及存储介质
本申请要求于2019年05月20日提交中国专利局、申请号为201910423011.3、申请名称为“信息交互方法、装置及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,主要涉及了一种信息交互方法、装置及存储介质。
背景技术
在现有技术中,服务器与客户端之间的信息交互基于验证会话对象(Session对象)的方式,即通过服务器创建Session对象,并将Session对象的用户标识回传给客户端,这样,只要客户端的浏览器不关,再去访问服务器时,都会携带该用户标识,使得客户端访问服务器。然而,若第三方能获取到该用户标识,则可依据该用户标识进行模拟登录,从而导致安全隐患,因此,如何提高信息交互的安全性是本领域技术人员待解决的技术问题。
发明内容
本申请实施例提供了一种信息交互方法、装置及存储介质,可提高信息交互的安全性。
第一方面,本申请实施例提供一种信息交互方法,应用于客户端,其中:
所述客户端向服务器发送所述客户端预先设置的第一验证信息;
所述客户端按照预设编码算法,分别对所述第一验证信息和预设算法进行编码,分别得到第一加密信息和第二加密信息;
所述客户端按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌;
所述客户端向所述服务器发送第一交互请求,所述第一交互请求包括所述第一令牌和第一交互信息;
若所述服务器确定第一待验证信息与所述第一验证信息匹配成功,则所述客户端根据所述第一交互信息与所述服务器进行交互,所述第一待验证信息由所述服务器按照所述预设编码算法对第一解密信息进行解码得到,所述第一解密信息由所述服务器按照所述预设令牌生成算法对所述第一令牌进行拆分得到。
第二方面,本申请实施例提供另一种信息交互方法,应用于服务器,其中:
所述服务器接收客户端发送的所述客户端预先设置的第一验证信息;
所述服务器接收所述客户端发送的第一交互请求,所述第一交互请求包括第一令牌和第一交互信息,所述第一令牌由所述客户端按照预设令牌生成算法对第一加密信息和第二加密信息进行生成得到,所述第一加密信息由所述客户端按照预设编码算法对所述第一验证信息进行编码得到,所述第二加密信息由所述客户端按照所述预设编码算法对预设算法进行编码得到;
所述服务器按照所述预设令牌生成算法,对所述第一令牌进行拆分,得到第一解密信息和第二解密信息;
所述服务器按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息进行解码,得到第一待验证信息和第二待验证信息;
若所述第二待验证信息与预设算法匹配成功,所述第一待验证信息与所述第一验证信息匹配成功,则所述服务器根据所述第一交互信息与所述客户端进行交互。
第三方面,本申请实施例提供一种信息交互装置,应用于客户端,其中:
通信单元,用于向服务器发送所述客户端预先设置的第一验证信息;
加密单元,用于按照预设编码算法,分别对所述第一验证信息和预设算法进行编码,分别得到第一加密信息和第二加密信息;按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌;
通信单元,还用于向所述服务器发送第一交互请求,所述第一交互请求包括所述第一令牌和第一交互信息;若所述服务器确定第一待验证信息与所述第一验证信息匹配成功,则根据所述第一交互信息与所述服务器进行交互,所述第一待验证信息由所述服务器按照所述预设编码算法对第一解密信息进行解码得到,所述第一解密信息由所述服务器按照所述预设令牌生成算法对所述第一令牌进行拆分得到。
第四方面,本申请实施例提供另一种信息交互装置,应用于服务器,其中:
通信单元,用于接收客户端发送的所述客户端预先设置的第一验证信息;接收所述客户端发送的第一交互请求,所述第一交互请求包括第一令牌和第一交互信息,所述第一令牌由所述客户端按照预设令牌生成算法对第一加密信息和第二加密信息进行生成得到,所述第一加密信息由所述客户端按照预设编码算法对所述第一验证信息进行编码得到,所述第二加密信息由所述客户端按照所述预设编码算法对预设算法进行编码得到;
解密单元,用于按照所述预设令牌生成算法,对所述第一令牌进行拆分,得到第一解密信息和第二解密信息;按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息进行解码,得到第一待验证信息和第二待验证信息;若所述第二待验证信息与预设算法匹配成功,所述第一待验证信息与所述第一验证信息匹配成功,则根据所述第一交互信息与所述客户端进行交互。
第五方面,本申请实施例提供一种客户端,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,所述程序包括用于如第一方面中所描述的部分或全部步骤的指令。
第六方面,本申请实施例提供一种服务器,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,所述程序包括用于如第二方面中所描述的部分或全部步骤的指令。
第七方面,本申请实施例提供了一种计算机非易失性可读存储介质,其中,所述计算机非易失性可读存储介质存储计算机程序,其中,所述计算机程序使得计算机执行以实现如第一方面中所描述的部分或全部步骤,所述计算机包括客户端。
第八方面,本申请实施例提供了另一种计算机非易失性可读存储介质,其中,所述计算机非易失性可读存储介质存储计算机程序,其中,所述计算机程序使得计算机执行以实现如第二方面中所描述的部分或全部步骤,所述计算机包括服务器。
实施本申请实施例,将具有如下有益效果:
采用了上述的信息交互方法、装置及存储介质之后,客户端与服务器之间基于预设编码算法和预设令牌生成算法得到的令牌进行交互,提高了信息交互的安全性。
附图说明
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图进行说明。
图1为本申请实施例提供的一种信息交互系统的结构示意图;
图2为本申请实施例提供的一种信息交互方法的流程示意图;
图3为本申请实施例提供的另一种信息交互方法的流程示意图;
图4为本申请实施例提供的一种信息交互系统的流程示意图;
图5为本申请实施例提供的一种信息交互装置的逻辑结构示意图;
图6为本申请实施例提供的一种信息交互装置的实体结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。
请参见图1,图1为应用本申请实施例的网络架构示意图。该网络架构示意图包括服务器101、客户端102和用户103。需要说明的是,图1所示的网络架构示意图中的各个设备的数量和形态用于举例,并不构成对本申请实施例的限定。
其中,客户端102可以是图1所示的个人计算机(personal computer,PC)、笔记本电脑或智能手机,还可以是一体机、掌上电脑、平板电脑(pad)、智能电视播放终端、车载终端或便捷式设备等电子设备。PC端客户端,例如一体机等,其操作系统可以包括但不限于Linux系统、Unix系统、Windows系列系统(例如Windows xp、Windows 7等)、Mac OS X系统(苹果电脑的操作系统)等操作系统。移动端客户端,例如智能手机等,其操作系统可以包括但不限于安卓系统、IOS(苹果手机的操作系统)、Window系统等操作系统。
服务器101与通用的计算机架构类似,包括处理器、硬盘、内存、系统总线等,用于为客户端102提供服务。该服务器101可以运行于单独的设备,也可以运行于多个服务器组成的客户端集群,在此不做限定。
用户103可以是实际操作客户端102的用户,也可以是开发人员。用户103可以对客户端102输入操作指令,以控制客户端102执行相应地操作。
下面对本申请实施例提供的信息交互方法的具体流程进一步进行说明。
请参照图2,本申请实施例提供一种信息交互方法的流程示意图。该信息交互方法应用于客户端,具体的,如图2所示,一种信息交互方法,其中:
S201:客户端向服务器发送所述客户端预先设置的第一验证信息。
在本申请实施例中,第一验证信息用于验证客户端对应的用户的身份信息,服务器可在接收到客户端发送的第一验证信息之后,存储于服务器中。第一验证信息是客户端预先设置的验证信息,可包括动态信息和用户信息等,在此不做限定。
其中,用户信息包括身份标识和身份标识对应的类型,身份标识可以是身份证号码、电话号码、联系邮箱等,具有唯一性,其类型可包括用户名、电话、邮箱等,在此均不做限定。
动态信息用于当前交互的验证,也就是说,每次交互完成之后或提交交互信息时,均生成一个动态信息。可以理解,通过验证该动态信息,可进一步提高信息交互的安全性。
在本申请实施例中,动态信息可以是时间,例如,上一次客户端向服务器提交交互请求的时间、本次客户端向服务器提交交互请求的时间、上一次服务器响应客户端的交互请求的时间,或者上一次服务器响应客户端的交互请求与客户端发送该交互请求之间的时间间隔;动态信息也可以是交互次数、交互频率等,在此也不做限定。
S202:所述客户端按照预设编码算法,分别对所述第一验证信息和预设算法进行编码,分别得到第一加密信息和第二加密信息。
在本申请实施例中,预设算法可包括安全散列算法(Secure Hash Algorithm,SHA),例如:SHA-1、SHA-224、SHA-256、SHA-384和SHA-512,预设算法也可包括消息摘要算法(Message-Digest Algorithm,MD5),预设算法还可包括基于哈希消息认证码(Hash-based Message Authentication Code,HMAC)的算法等,在此不做限定。
在本申请实施例中,第一加密信息由客户端按照预设编码算法对第一验证信息进行编码得到,第二加密信息由客户端按照预设编码算法对预设算法进行编码得到。其中,预设 编码算法可以基于美国信息交换标准代码(American Standard Code for Information Interchange,ASCII)、ISO-8859-1、GB2312、GBK、UTF(Unicode Transformation Format)-8、UTF-16、base64等中编码算法的一种或多种,在此不做限定。
其中,ASCII是基于拉丁字母的一套电脑编码系统,主要用于显示现代英语和其他西欧语言。ASCII总共有128个,用一个字节的低7位表示,其中,0~31是控制字符如换行回车删除等,32~126是打印字符。
ISO-8859-1是单字节编码,用于扩展ASCII,其编码范围是0x00-0xFF,0x00-0x7F之间完全和ASCII一致,0x80-0x9F之间是控制字符,0xA0-0xFF之间是文字符号。
GB2312全称是信息交换的汉字编码字符集,是双字节编码,总的编码范围是A1-F7,其中从A1-A9是符号区,总共包含682个符号,从B0-F7是汉字区,包含6763个汉字。
GBK全称是汉字内码扩展规范,用于扩展GB2312。它的编码范围是8140~FEFE(去掉XX7F)总共有23940个码位,它能表示21003个汉字。
UTF-16具体定义了Unicode字符在计算机中存取方法。UTF-16用两个字节来表示Unicode转化格式,是定长的表示方法。
UTF-8采用了一种变长技术,每个编码区域有不同的字码长度。不同类型的字符可以是由1~6个字节组成。
base64是网络上最常见的用于传输8Bit字节码的编码方式之一,可用于在HTTP环境下传递较长的标识信息。具体可根据一系列以编号排定的文件(Request For Comments,RFC)中多用途的网际邮件扩充协议(Multipurpose Internet Mail Extensions,MIME)的详细规范进行转换以得到字符串。
本申请以ASCII编码和base64编码进行举例说明,先将按照ASCII编码将第一验证信息和预设算法对应的字符串转换为二进制,再分别按照base64编码将第一验证信息和预设算法对应的二进制转换为字符串。
例如,若转换前的字符串为s13,则先转成美国信息交换标准代码(American Standard Code for Information Interchange,ASCII)可得到115 49 51,再转换为2进制可得到01110011 00110001 00110011,将6个分为一组可得到011100 110011 000100 110011,由于计算机是8位的存数,则高位补0可得到00011100 00110011 00000100 00110011,也就是十进制的28 51 4 51,通过查照下表1所示的RFC2045可得到转换后的字符串为:czEz。
表1
索引 对应字符 索引 对应字符 索引 对应字符 索引 对应字符
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    
可以理解,按照预设编码算法分别对第一验证信息和预设算法进行编码,也就是分别对第一验证信息和预设算法进行编码,可提高验证第一验证信息的安全性。
S203:所述客户端按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌。
在本申请实施例中,第一令牌为客户端与服务器之间信息交互的验证信息。
本申请对于预设令牌生成算法不做限定,可分别提取第一加密信息和第二加密信息中的部分字符,例如:首尾字符,再将其部分字符进行编码;也可组合第一加密信息和第二加密信息,再将其组合信息进行编码等。
在一种可能的示例中,所述客户端按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌,包括:所述客户端按照预设组合算法,对所述第一加密信息和所述第二加密信息进行组合,得到第三加密信息;所述客户端按照所述预设算法对所述第三加密信息进行编码,得到第四加密信息;所述客户端按照所述预设组合算法,对所述第一加密信息、所述第二加密信息和所述第四加密信息进行组合,得到第五加密信息;所述客户端按照预设缩短算法,对所述第五加密信息进行缩短处理,得到所述第一令牌。
其中,第三加密信息为第一加密信息和第二加密信息按照预设组合算法进行组合得到的信息,本申请对于预设组合算法不做限定,可采用特定符号或特定字符进行拼接,例如“+”、“-”、“/”、“000”等,举例来说,第一加密信息为kcds,第二加密信息为josd,则第三加密信息为kcds+josd。预设组合算法也可先将每一部分的首字母进行大写,其他则为小写,再直接进行组合,例如:第一加密信息为kcds,第二加密信息为josd,第三加密信息为KcdsJosd。
第四加密信息为第三加密信息按照预设算法进行编码得到的信息,其中预设算法可参照步骤S101的描述,在此不再赘述。可以理解,经过加密第一加密信息和第二加密信息组合得到的第三加密信息,使得第四加密信息的安全性更高,便于提高信息交互的安全性。
第五加密信息为第一加密信息、第二加密信息和第四加密信息按照预设组合算法进行组合得到的信息,其预设组合算法可参照第三加密信息的描述,在此不再赘述。
第一令牌为第五加密信息按照预设缩短算法进行缩短处理得到的信息。本申请对于预设缩短算法的方法不做限定,在一种可能的示例中,所述第五加密信息包括多个字符,所述客户端对所述第五加密信息进行缩短处理,得到所述第一令牌,包括:所述客户端获取所述多个字符中每一字符对应的序号和数量;所述客户端根据所述多个字符中每一字符的序列和数量获取所述字符对应的权值,得到多个权值;所述客户端根据所述多个权值将所述多个字符进行哈夫曼编码,得到所述第一令牌。
其中,序号的获取方法可基于字母顺序排列的单词按字母顺序排列的方法,即按照字母表的顺序确定各个字母的序号。
哈夫曼编码(Huffman Coding),又称霍夫曼编码,是一种编码方式,哈夫曼编码是可变字长编码的一种,该方法完全依据字符出现概率来构造异字头的平均长度最短的码字。
在上述可能的示例中,客户端先获取各个字符的数量,以及各个字符对应的序号,再依据各个字符的数量和序号确定各个字符的权值,然后进行哈夫曼编码得到第一令牌,如此,使得第一令牌的字符长度小于第五加密信息的字符长度,可提高信息交互的效率和安全性。
可以理解,客户端对第一加密信息和第二加密信息进行组合以得到第三加密信息,然后由预设算法对第三加密信息进行编码以得到第四加密信息。再对第一加密信息、第二加密信息和第四加密信息进行组合,可得到较长的第五加密信息,再通过缩短处理第五加密信息得到较短的第一令牌,从而缩短了第一令牌的传输长度,提高了交互的效率和安全性。且第一令牌经过组合、加密和再组和的操作,可进一步提高了信息交互的安全性。
S204:所述客户端向所述服务器发送第一交互请求,所述第一交互请求包括所述第一令牌和第一交互信息。
在本申请实施例中,第一交互信息可包括待访问网址、预存储信息等,在此不做限定,第一交互信息用于指示服务器如何与客户端进行信息交互。
S205:若所述服务器确定第一待验证信息与所述第一验证信息匹配成功,则所述客户端根据所述第一交互信息与所述服务器进行交互。
其中,第一待验证信息由所述服务器按照所述预设编码算法对第一解密信息进行解码得到,即为客户端按照预设编码算法对第一验证信息进行编码得到第一加密信息的逆过程。第一解密信息由所述服务器按照所述预设令牌生成算法对所述第一令牌进行拆分得到,即为客户端按照预设令牌生成算法对第一加密信息和第二加密信息进行生成得到第一令牌的逆过程,在此均不做赘述。
在如图2所示的信息交互方法中,客户端按照预设编码算法分别对该客户端预先设置的第一验证信息和预设算法进行编码分别得到第一加密信息和第二加密信息。然后,客户端按照预设令牌生成算法对第一加密信息和第二加密信息进行生成得到第一令牌,向服务器发送包括第一令牌和第一交互信息的第一交互请求。然后,服务器按照该预设令牌生成算法对第一令牌进行解密得到第一解密信息,按照预设编码算法对第一解密信息进行解码得到第一待验证信息。若该第一待验证信息与该客户端预先向服务器发送的第一验证信息匹配成功,则客户端根据第一交互信息与服务器进行交互。如此,客户端与服务器之间基于预设编码算法和预设令牌生成算法得到的令牌进行交互,提高了信息交互的安全性。
在一种可能的示例中,在所述客户端根据所述第一交互信息与所述服务器进行交互之后,所述方法还包括:所述客户端对所述第一验证信息中的动态信息进行更新,得到第二验证信息;所述客户端向所述服务器发送所述第二验证信息;所述客户端按照所述预设编码算法,对所述第二验证信息进行编码,得到第六加密信息;所述客户端按照所述预设令牌生成算法,对所述第六加密信息和所述第一加密信息进行生成,得到第二令牌;所述客户端向所述服务器发送第二交互请求,所述第二交互请求包括所述第二令牌和第二交互信息;若所述服务器确定第二待验证信息与所述第二验证信息匹配成功,则所述客户端根据所述第二交互信息与所述服务器进行交互,所述第二待验证信息由所述服务器按照所述预设编码算法对第二解密信息进行解码得到,所述第二解密信息由所述服务器按照所述预设令牌生成算法对所述第二令牌进行拆分得到。
其中,动态信息如前所述,用于当前交互的验证。第二验证信息为更新的第一验证信息。第六加密信息可参照第一加密信息和第二加密信息的编码步骤,第二令牌可参照第一令牌的描述,第二交互信息可参照第一交互信息的描述,第二解密信息可参照第一解密信息的描述,第二待验证信息可参照第一待验证信息的描述,在此均不再赘述。
可以理解,客户端对第一验证信息中的动态信息进行更新得到第二验证信息,再按照步骤S202、S203的方法对第二验证信息进行编码得到第二令牌,从而客户端可基于该第二令牌与服务器进行信息交互。如此,更新了服务器中存储的验证信息,以免第三方利用使用原始的第一令牌与服务器进行交互,进一步提高信息交互的安全性。
本申请对于更新第一验证信息的方法不做限定,在一种可能的示例中,所述客户端对 所述第一验证信息中的动态信息进行更新,得到第二验证信息,包括:所述客户端获取所述客户端向所述服务器发送所述第一交互请求的请求时间;所述客户端将所述第一验证信息中的动态信息更新为所述请求时间,得到所述第二验证信息。
可以理解,将客户端与服务器发送第一交互请求的请求时间作为第一验证信息中的动态信息,也就是说,将上一次客户端向服务器提出交互请求的请求时间作为动态信息,然后,服务器更新该动态信息以得到第二验证信息。如此,提高了动态信息的灵活性,即提高了令牌的灵活性,便于提高信息交互安全。
与图2所示的实施例一致,请参照图3,图3是本申请实施例提供的另一种信息交互方法的流程示意图,该方法应用于服务器,具体的,如图3所示,一种信息交互方法,包括:
S301:服务器接收客户端发送的所述客户端预先设置的第一验证信息。
S302:服务器接收所述客户端发送的第一交互请求,所述第一交互请求包括第一令牌和第一交互信息。
其中,所述第一令牌由所述客户端按照预设令牌生成算法对第一加密信息和第二加密信息进行生成得到,所述第一加密信息由所述客户端按照预设编码算法对所述第一验证信息进行编码得到,所述第二加密信息由所述客户端按照所述预设编码算法对预设算法进行编码得到,可参照步骤S202、S203的描述,在此均不再赘述。
S303:所述服务器按照所述预设令牌生成算法,对所述第一令牌进行拆分,得到第一解密信息和第二解密信息。
其中,第一解密信息和第二解密信息由服务器按照预设令牌生成算法对第一令牌进行拆分得到,即为客户端按照预设令牌生成算法对第一加密信息和第二加密信息进行生成得到第一令牌的逆过程,在此不再赘述。
S304:所述服务器按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息进行解码,得到第一待验证信息和第二待验证信息。
其中,第一待验证信息和第二待验证信息由服务器按照预设编码算法对第一解密信息进行解码得到,即为客户端按照预设编码算法对第一验证信息进行编码得到第一加密信息的逆过程,在此不再赘述。
S305:若所述第二待验证信息与预设算法匹配成功,所述第一待验证信息与所述第一验证信息匹配成功,则所述服务器根据所述第一交互信息与所述客户端进行交互。
本申请对于验证第一待验证信息与第一验证信息的方法不做限定,可先分别对动态信息进行验证,若动态信息验证成功,则再分别验证用户信息,否则返回异常。若用户信息验证成功,则确定第一待验证信息与第一验证信息验证成功,否则返回异常。
在如图3所示的信息交互方法中,服务器接收客户端发送的第一验证信息和包括第一令牌的第一交互请求,并按照预设令牌生成算法对该第一令牌进行拆分得到第一解密信息和第二解密信息,然后按照预设编码算法分别对该第一解密信息和该第二解密信息进行解码得到第一待验证信息和第二待验证信息。若该第二待验证信息与预设算法匹配成功,该第一待验证信息与该第一验证信息匹配成功,则服务器根据该第一交互请求中的第一交互信息与客户端进行交互。如此,客户端与服务器之间基于预设编码算法和预设令牌生成算法得到的令牌进行交互,提高了信息交互的安全性。
在另一种可能的示例中,所述服务器按照所述预设缩短算法,对所述第一令牌进行延长处理,得到第五解密信息;所述服务器按照所述预设组合算法,对所述第五解密信息进行拆分,得到第一解密信息和第二解密信息和第四解密信息;所述服务器按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息和所述第四解密信息进行解码,分 别得到第一信息、第二信息和第三信息;若所述第二信息与所述预设算法匹配成功,则所述服务器确定所述第二信息为所述第二待验证信息;所述服务器按照所述预设组合算法,对所述第二信息和所述第一信息进行组合,得到第一组合信息,所述服务器按照所述预设组合算法,对所述第二信息和所述第三信息进行组合,得到第二组合信息;若所述第一组合信息与所述第三信息匹配成功,则所述服务器确定所述第一信息为所述第一待验证信息。
其中,第五解密信息为第一令牌按照预设缩短算法进行延长处理得到的信息,即第五信息按照预设缩短算法进行缩短处理得到的第一令牌的逆过程。
在一种可能的示例中,所述第一令牌包括多个字符,所述服务器按照所述预设缩短算法,对所述第一令牌进行延长处理,得到第五解密信息,包括:所述服务器对所述多个字符中每一字符进行哈夫曼解码,以得到多个权值,每一权值对应一个字符;所述服务器根据所述多个权值获取所述多个字符中每一字符的序列和数量;所述服务器根据所述多个字符中每一字符的序列和数量获取所述第五解密信息。
其中,哈夫曼解码为哈夫曼编码的逆过程。
可以理解,服务器先对第一令牌中的字符进行哈夫曼解码以得到多个权值,再获取各个字符的序列和数量,然后根据各个字符的序列和数量获取第五信息,如此,恢复了缩短的字符串,提高了获取第五解密信息的准确性。
在本申请中,第一解密信息和第二解密信息和第四解密信息分别按照预设组合算法对第五解密信息进行拆分得到的信息,即按照预设组合算法对第一加密信息、第二加密信息和第四加密信息进行组合得到第五加密信息的逆过程。
第一解密信息、第二解密信息和第三解密信息分别按照预设编码算法对第一解密信息和第二解密信息和第四解密信息进行解码得到的信息,即分别按照预设编码算法对预设算法、第一验证信息、第三加密信息进行编码分别得到第一加密信息、第二加密信息和第三加密信息的逆过程。
在本申请中,第三加密信息为第一加密信息和第二加密信息的组合信息,则在第二信息与预设算法匹配成功时,则确定第二信息与第一加密信息匹配。然后,服务器按照预设组合算法分别对第二信息和第一信息,第二信息和第三信息进行组合,分别得到第一组合信息和第二组合信息。若确定第一组合信息与第三信息匹配成功,则确定第三信息与第四加密信息匹配,将第一解密信息作为第一待验证信息。
可以理解,在拆分第一令牌的过程中,获取第一待验证信息,若第一待验证信息与第一验证信息验证成功,则允许客户端与服务器进行交互,从而进一步提高信息交互的安全性。
需要说明的是,服务器也可按照步骤S202、S203的方法获取待验证令牌,若该待验证令牌与第一令牌匹配成功,则允许客户端根据第一交互信息与服务器进行交互。
在一种可能的示例中,在所述服务器根据所述第一交互信息与所述客户端进行交互之后,所述方法还包括:所述服务器接收所述客户端发送的第二验证信息,所述第二验证信息由所述客户端对所述第一验证信息中的动态信息进行更新得到。
需要说明的是,服务器也可参照第二验证信息的更新方法进行更新,如此,在信息交互完成之后,自动更新了服务器中存储的验证信息,提高了更新操作的便利性和信息交互的安全性。
与图2和图3所示的实施例一致,请参照图4,图4是本申请提出的一种信息交互系统执行的时序图。如图4所示,包括:
S401:客户端向服务器发送所述客户端预先设置的第一验证信息。
S402:所述客户端按照预设编码算法,分别对所述第一验证信息和预设算法进行编码, 分别得到第一加密信息和第二加密信息。
S403:所述客户端按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌。
S404:所述客户端向所述服务器发送第一交互请求,所述第一交互请求包括所述第一令牌和第一交互信息。
S405:所述服务器按照所述预设令牌生成算法,对所述第一令牌进行拆分,得到第一解密信息和第二解密信息。
S406:所述服务器按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息进行解码,得到第一待验证信息和第二待验证信息。
S407:若所述第二待验证信息与预设算法匹配成功,所述第一待验证信息与所述第一验证信息匹配成功,则所述服务器根据所述第一交互信息与所述客户端进行交互。
在如图4所示的信息交互系统中,客户端分别基于预设编码算法和预设令牌生成算法对第一验证信息进行加密得到第一令牌,并向服务器发送包括第一令牌的第一交互请求。然后,服务器再分别基于预设编码算法和预设令牌生成算法对该第一令牌进行解密得到第一待验证信息。若第一待验证信息与第一验证信息匹配成功,则允许客户端根据第一交互请求中的第一交互信息与服务器进行交互,从而提高了信息交互的安全性。
上述详细阐述了本申请实施例的方法,下面提供了本申请实施例的装置。
与图2所示的实施例一致,请参照图5,图5是本申请提出的一种信息交互装置的结构示意图,所述装置应用于客户端。如图5所示,上述信息交互装置500包括:
通信单元501,用于向服务器发送客户端预先设置的第一验证信息;
加密单元502,用于按照预设编码算法,分别对所述第一验证信息和预设算法进行编码,分别得到第一加密信息和第二加密信息;按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌;
通信单元501,还用于向所述服务器发送第一交互请求,所述第一交互请求包括所述第一令牌和第一交互信息;若所述服务器确定第一待验证信息与所述第一验证信息匹配成功,则根据所述第一交互信息与所述服务器进行交互,所述第一待验证信息由所述服务器按照所述预设编码算法对第一解密信息进行解码得到,所述第一解密信息由所述服务器按照所述预设令牌生成算法对所述第一令牌进行拆分得到。
在一种可能的示例中,在所述按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌方面,所述加密单元502具体用于按照预设组合算法,对所述第一加密信息和所述第二加密信息进行组合,得到第三加密信息;按照所述预设编码算法,对所述第三加密信息进行编码,得到第四加密信息;按照所述预设组合算法,对所述第一加密信息、所述第二加密信息和所述第四加密信息进行组合,得到第五加密信息;按照预设缩短算法,对所述第五加密信息进行缩短处理,得到所述第一令牌。
在一种可能的示例中,所述第五加密信息包括多个字符,在所述对所述第五加密信息进行缩短处理,得到所述第一令牌方面,所述加密单元502具体用于获取所述多个字符中每一字符对应的序号和数量;根据所述多个字符中每一字符的序列和数量获取所述字符对应的权值,得到多个权值;根据所述多个权值对所述多个字符中每一字符进行哈夫曼编码,得到所述第一令牌。
在一种可能的示例中,在所述根据所述第一交互信息与所述服务器进行交互之后,所述加密单元502还用于对所述第一验证信息中的动态信息进行更新,得到第二验证信息;所述通信单元501还用于向所述服务器发送所述第二验证信息;所述加密单元502还用于按照所述预设编码算法,对所述第二验证信息进行编码,得到第六加密信息;按照所述预 设令牌生成算法,对所述第六加密信息和所述第一加密信息进行生成,得到第三令牌;所述通信单元501还用于向所述服务器发送第二交互请求,所述第二交互请求包括所述第二令牌和第二交互信息;若所述服务器确定第二待验证信息与所述第二验证信息匹配成功,则根据所述第二交互信息与所述服务器进行交互,所述第二待验证信息由所述服务器按照所述预设编码算法对第二解密信息进行解码得到,所述第二解密信息由所述服务器按照所述预设令牌生成算法对所述第二令牌进行拆分得到。
在一种可能的示例中,在所述对所述第一验证信息中的动态信息进行更新,得到第二验证信息方面,所述加密单元502具体用于获取所述客户端向所述服务器发送所述第一交互请求的请求时间;将所述第一验证信息中的动态时间更新为所述请求时间,得到所述第二验证信息。
与图3所示的实施例一致,请参照图5,该装置应用于服务器。如图5所示,上述信息交互装置500包括:
通信单元501,用于接收客户端发送的所述客户端预先设置的第一验证信息;接收所述客户端发送的第一交互请求,所述第一交互请求包括第一令牌和第一交互信息,所述第一令牌由所述客户端按照预设令牌生成算法对第一加密信息和第二加密信息进行生成得到,所述第一加密信息由所述客户端按照预设编码算法对所述第一验证信息进行编码得到,所述第二加密信息由所述客户端按照所述预设编码算法对预设算法进行编码得到;
解密单元502,用于按照所述预设令牌生成算法,对所述第一令牌进行拆分,得到第一解密信息和第二解密信息;按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息进行解码,得到第一待验证信息和第二待验证信息;若所述第二待验证信息与预设算法匹配成功,所述第一待验证信息与所述第一验证信息匹配成功,则根据所述第一交互信息与所述客户端进行交互。
在另一种可能的示例中,所述解密单元502还用于按照所述预设缩短算法,对所述第一令牌进行延长处理,得到第五解密信息;按照所述预设组合算法,对所述第五解密信息进行拆分,得到第一解密信息和第二解密信息和第四解密信息;按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息和所述第四解密信息进行解码,分别得到第一信息、第二信息和第三信息;若所述第二信息与所述预设算法匹配成功,则确定所述第二信息为所述第二待验证信息;按照所述预设组合算法,对所述第二信息和所述第一信息进行组合,得到第一组合信息,按照所述预设组合算法,对所述第二信息和所述第三信息进行组合,得到第二组合信息;若所述第一组合信息与所述第三信息匹配成功,则确定所述第一信息为所述第一待验证信息。
在一种可能的示例中,所述第一令牌包括多个字符,在所述按照所述预设缩短算法,对所述第一令牌进行延长处理,得到第五解密信息方面,所述解密单元502具体用于对所述多个字符中每一字符进行哈夫曼解码,以得到多个权值,每一权值对应一个字符;根据所述多个权值获取所述多个字符中每一字符的序列和数量;根据所述多个字符中每一字符的序列和数量获取所述第五解密信息。
在一种可能的示例中,在所述根据所述第一交互信息与所述客户端进行交互之后,所述通信单元501还用于接收所述客户端发送的第二验证信息,所述第二验证信息由所述客户端对所述第一验证信息中的动态信息进行更新得到。
该信息交互装置500中各个单元执行详细过程可以参见前述方法实施例中的执行步骤,此处不在赘述。
与图2的实施例一致,请参照图6,图6是本申请实施例提供的又一种信息交互装置的结构示意图,该信息交互装置为客户端。如图6所示,该信息交互装置600包括处理器 610、存储器620、通信接口630以及一个或多个程序640。图5所示的通信单元501所实现的相关功能可通过通信接口630来实现,图5所示的加密单元502所实现的相关功能可通过处理器610来实现。
上述一个或多个程序640被存储在上述存储器620中,并且被配置由上述处理器610执行,上述程序640包括用于执行以下步骤的指令:
向服务器发送所述客户端预先设置的第一验证信息;
按照预设编码算法,分别对所述第一验证信息和预设算法进行编码,分别得到第一加密信息和第二加密信息;
按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌;
向所述服务器发送第一交互请求,所述第一交互请求包括所述第一令牌和第一交互信息;
若所述服务器确定第一待验证信息与所述第一验证信息匹配成功,则根据所述第一交互信息与所述服务器进行交互,所述第一待验证信息由所述服务器按照所述预设编码算法对第一解密信息进行解码得到,所述第一解密信息由所述服务器按照所述预设令牌生成算法对所述第一令牌进行拆分得到。
在一个可能的示例中,在所述按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌方面,所述程序640具体用于执行以下步骤的指令:
按照预设组合算法,对所述第一加密信息和所述第二加密信息进行组合,得到第三加密信息;
按照所述预设编码算法,对所述第三加密信息进行编码,得到第四加密信息;
按照所述预设组合算法,对所述第一加密信息、所述第二加密信息和所述第四加密信息进行组合,得到第五加密信息;
按照预设缩短算法,对所述第五加密信息进行缩短处理,得到所述第一令牌。
在一个可能的示例中,所述第五加密信息包括多个字符,在所述按照预设缩短算法,对所述第五加密信息进行缩短处理,得到所述第一令牌方面,所述程序640具体用于执行以下步骤的指令:
获取所述多个字符中每一字符对应的序号和数量;
根据所述多个字符中每一字符的序列和数量获取所述字符对应的权值,以得到多个权值;
根据所述多个权值对所述多个字符中每一字符进行哈夫曼编码,以得到所述第一令牌。
在一个可能的示例中,在所述根据所述第一交互信息与所述服务器进行交互之后,所述程序640还用于执行以下步骤的指令:
对所述第一验证信息中的动态信息进行更新,得到第二验证信息;
向所述服务器发送所述第二验证信息;
按照所述预设编码算法,对所述第二验证信息进行编码,得到第六加密信息;
按照所述预设令牌生成算法,对所述第六加密信息和所述第二加密信息进行生成,得到第二令牌;
向所述服务器发送第二交互请求,所述第二交互请求包括所述第二令牌和第二交互信息;
若所述服务器确定第二待验证信息与所述第二验证信息匹配成功,则根据所述第二交互信息与所述服务器进行交互,所述第二待验证信息由所述服务器按照所述预设编码算法对第二解密信息进行解码得到,所述第二解密信息由所述服务器按照所述预设令牌生成算 法对所述第二令牌进行拆分得到。
在一个可能的示例中,在所述对所述第一验证信息中的动态信息进行更新,得到第二验证信息方面,所述程序640具体用于执行以下步骤的指令:
获取所述客户端向所述服务器发送所述第一交互请求的请求时间;
将所述第一验证信息中的动态时间更新为所述请求时间,得到所述第二验证信息。
与图3的实施例一致,请参照图6,该信息交互装置应用于服务器。图5所示的通信单元501所实现的相关功能可通过通信接口630来实现,图5所示的解密单元503所实现的相关功能可通过处理器610来实现。如图6所示,上述程序640包括用于执行以下步骤的指令:
接收客户端发送的所述客户端预先设置的第一验证信息;
接收所述客户端发送的第一交互请求,所述第一交互请求包括第一令牌和第一交互信息,所述第一令牌由所述客户端按照预设令牌生成算法对第一加密信息和第二加密信息进行生成得到,所述第一加密信息由所述客户端按照预设编码算法对所述第一验证信息进行编码得到,所述第二加密信息由所述客户端按照所述预设编码算法对预设算法进行编码得到;
按照所述预设令牌生成算法,对所述第一令牌进行拆分,得到第一解密信息和第二解密信息;
按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息进行解码,得到第一待验证信息和第二待验证信息;
若所述第二待验证信息与预设算法匹配成功,所述第一待验证信息与所述第一验证信息匹配成功,则根据所述第一交互信息与所述客户端进行交互。
在一个可能的示例中,所述程序640还用于执行以下步骤的指令:
按照所述预设缩短算法,对所述第一令牌进行延长处理,得到第五解密信息;
按照所述预设组合算法,对所述第五解密信息进行拆分,得到第一解密信息和第二解密信息和第四解密信息;
按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息和所述第四解密信息进行解码,分别得到第一信息、第二信息和第三信息;
若所述第二信息与所述预设算法匹配成功,则确定所述第二信息为所述第二待验证信息;
按照所述预设组合算法,对所述第二信息和所述第一信息进行组合,得到第一组合信息,按照所述预设组合算法,对所述第二信息和所述第三信息进行组合,得到第二组合信息;
若所述第一组合信息与所述第三信息匹配成功,则确定所述第一信息为所述第一待验证信息。
在一个可能的示例中,所述第一令牌包括多个字符,在所述按照所述预设缩短算法,对所述第一令牌进行延长处理,得到第五解密信息方面,所述程序640具体用于执行以下步骤的指令:
对所述多个字符中每一字符进行哈夫曼解码,以得到多个权值,每一权值对应一个字符;
根据所述多个权值获取所述多个字符中每一字符的序列和数量;
根据所述多个字符中每一字符的序列和数量获取所述第五解密信息。
在一种可能的示例中,在所述根据所述第一交互信息与所述客户端进行交互之后,所述程序640还用于执行以下步骤的指令:
接收所述客户端发送的第二验证信息,所述第二验证信息由所述客户端对所述第一验证信息中的动态信息进行更新得到。
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于存储计算机程序,该计算机程序使得计算机执行以实现方法实施例中记载的任一方法的部分或全部步骤,计算机包括客户端或服务器。
本申请实施例还提供一种计算机程序产品,计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,计算机程序可操作来使计算机执行以实现方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,计算机包括客户端或服务器。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模式并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模式的形式实现。
集成的单元如果以软件程序模式的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。根据这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、ROM、RAM、磁盘或光盘等。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种信息交互方法,其特征在于,应用于客户端,所述方法包括:
    所述客户端向服务器发送所述客户端预先设置的第一验证信息;
    所述客户端按照预设编码算法,分别对所述第一验证信息和预设算法进行编码,分别得到第一加密信息和第二加密信息;
    所述客户端按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌;
    所述客户端向所述服务器发送第一交互请求,所述第一交互请求包括所述第一令牌和第一交互信息;
    若所述服务器确定第一待验证信息与所述第一验证信息匹配成功,则所述客户端根据所述第一交互信息与所述服务器进行交互,所述第一待验证信息由所述服务器按照所述预设编码算法对第一解密信息进行解码得到,所述第一解密信息由所述服务器按照所述预设令牌生成算法对所述第一令牌进行拆分得到。
  2. 根据权利要求1所述的方法,其特征在于,所述客户端按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌,包括:
    所述客户端按照预设组合算法,对所述第一加密信息和所述第二加密信息进行组合,得到第三加密信息;
    所述客户端按照所述预设编码算法,对所述第三加密信息进行编码,得到第四加密信息;
    所述客户端按照所述预设组合算法,对所述第一加密信息、所述第二加密信息和所述第四加密信息进行组合,得到第五加密信息;
    所述客户端按照预设缩短算法,对所述第五加密信息进行缩短处理,得到所述第一令牌。
  3. 根据权利要求2所述的方法,其特征在于,所述第五加密信息包括多个字符,所述客户端按照预设缩短算法,对所述第五加密信息进行缩短处理,得到所述第一令牌,包括:
    所述客户端获取所述多个字符中每一字符对应的序号和数量;
    所述客户端根据所述多个字符中每一字符的序列和数量获取所述字符对应的权值,得到多个权值;
    所述客户端根据所述多个权值对所述多个字符中每一字符进行哈夫曼编码,得到所述第一令牌。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,在所述客户端根据所述第一交互信息与所述服务器进行交互之后,所述方法还包括:
    所述客户端对所述第一验证信息中的动态信息进行更新,得到第二验证信息;
    所述客户端向所述服务器发送所述第二验证信息;
    所述客户端按照所述预设编码算法,对所述第二验证信息进行编码,得到第六加密信息;
    所述客户端按照所述预设令牌生成算法,对所述第六加密信息和所述第二加密信息进行生成,得到第二令牌;
    所述客户端向所述服务器发送第二交互请求,所述第二交互请求包括所述第二令牌和第二交互信息;
    若所述服务器确定第二待验证信息与所述第二验证信息匹配成功,则所述客户端根据所述第二交互信息与所述服务器进行交互,所述第二待验证信息由所述服务器按照所述预设编码算法对第二解密信息进行解码得到,所述第二解密信息由所述服务器按照所述预设 令牌生成算法对所述第二令牌进行拆分得到。
  5. 根据权利要求4所述的方法,其特征在于,所述客户端对所述第一验证信息中的动态信息进行更新,得到第二验证信息,包括:
    所述客户端获取所述客户端向所述服务器发送所述第一交互请求的请求时间;
    所述客户端将所述第一验证信息中的动态时间更新为所述请求时间,得到所述第二验证信息。
  6. 一种信息交互方法,其特征在于,应用于服务器,所述方法包括:
    所述服务器接收客户端发送的所述客户端预先设置的第一验证信息;
    所述服务器接收所述客户端发送的第一交互请求,所述第一交互请求包括第一令牌和第一交互信息,所述第一令牌由所述客户端按照预设令牌生成算法对第一加密信息和第二加密信息进行生成得到,所述第一加密信息由所述客户端按照预设编码算法对所述第一验证信息进行编码得到,所述第二加密信息由所述客户端按照所述预设编码算法对预设算法进行编码得到;
    所述服务器按照所述预设令牌生成算法,对所述第一令牌进行拆分,得到第一解密信息和第二解密信息;
    所述服务器按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息进行解码,得到第一待验证信息和第二待验证信息;
    若所述第二待验证信息与预设算法匹配成功,所述第一待验证信息与所述第一验证信息匹配成功,则所述服务器根据所述第一交互信息与所述客户端进行交互。
  7. 根据权利要求6所述的方法,其特征在于,所述服务器按照所述预设令牌生成算法,对所述第一令牌进行拆分,得到第一解密信息和第二解密信息,包括:
    所述服务器按照预设缩短算法,对所述第一令牌进行延长处理,得到第五解密信息;
    所述服务器按照预设组合算法,对所述第五解密信息进行拆分,得到第一解密信息、第二解密信息和第四解密信息;
    所述服务器按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息进行解码,得到第一待验证信息和第二待验证信息,包括:
    所述服务器按照所述预设编码算法,分别对所述第一解密信息、所述第二解密信息和所述第四解密信息进行解码,分别得到第一信息、第二信息和第三信息;
    若所述第二信息与所述预设算法匹配成功,则所述服务器确定所述第二信息为所述第二待验证信息;
    所述服务器按照预设组合算法,对所述第二信息和所述第一信息进行组合,得到第一组合信息,所述服务器按照所述预设组合算法,对所述第二信息和所述第三信息进行组合,得到第二组合信息;
    若所述第一组合信息与所述第三信息匹配成功,则所述服务器确定所述第一信息为所述第一待验证信息。
  8. 根据权利要求7所述的方法,其特征在于,所述第一令牌包括多个字符,所述服务器按照预设缩短算法,对所述第一令牌进行延长处理,得到第五解密信息,包括:
    所述服务器对所述多个字符中每一字符进行哈夫曼解码,以得到多个权值,每一权值对应一个字符;
    所述服务器根据所述多个权值获取所述多个字符中每一字符的序列和数量;
    所述服务器根据所述多个字符中每一字符的序列和数量获取所述第五解密信息。
  9. 一种信息交互装置,其特征在于,应用于客户端,所述装置包括:
    通信单元,用于向服务器发送所述客户端预先设置的第一验证信息;
    加密单元,用于按照预设编码算法,分别对所述第一验证信息和预设算法进行编码,分别得到第一加密信息和第二加密信息;按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌;
    通信单元,还用于向所述服务器发送第一交互请求,所述第一交互请求包括所述第一令牌和第一交互信息;若所述服务器确定第一待验证信息与所述第一验证信息匹配成功,则根据所述第一交互信息与所述服务器进行交互,所述第一待验证信息由所述服务器按照所述预设编码算法对第一解密信息进行解码得到,所述第一解密信息由所述服务器按照所述预设令牌生成算法对所述第一令牌进行拆分得到。
  10. 根据权利要求9所述的装置,其特征在于,所述加密单元在按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌时,具体用于:
    按照预设组合算法,对所述第一加密信息和所述第二加密信息进行组合,得到第三加密信息;
    按照所述预设编码算法,对所述第三加密信息进行编码,得到第四加密信息;
    按照所述预设组合算法,对所述第一加密信息、所述第二加密信息和所述第四加密信息进行组合,得到第五加密信息;
    按照预设缩短算法,对所述第五加密信息进行缩短处理,得到所述第一令牌。
  11. 根据权利要求10所述的装置,其特征在于,所述第五加密信息包括多个字符,所述加密单元在按照预设缩短算法,对所述第五加密信息进行缩短处理,得到所述第一令牌时,具体用于:
    获取所述多个字符中每一字符对应的序号和数量;
    根据所述多个字符中每一字符的序列和数量获取所述字符对应的权值,得到多个权值;
    根据所述多个权值对所述多个字符中每一字符进行哈夫曼编码,得到所述第一令牌。
  12. 根据权利要求9-11任一项所述的装置,其特征在于,
    所述加密单元,还用于在根据所述第一交互信息与所述服务器进行交互之后,对所述第一验证信息中的动态信息进行更新,得到第二验证信息;
    所述通信单元,还用于向所述服务器发送所述第二验证信息;
    所述加密单元,还用于按照所述预设编码算法,对所述第二验证信息进行编码,得到第六加密信息;按照所述预设令牌生成算法,对所述第六加密信息和所述第二加密信息进行生成,得到第二令牌;
    所述通信单元,还用于向所述服务器发送第二交互请求,所述第二交互请求包括所述第二令牌和第二交互信息;若所述服务器确定第二待验证信息与所述第二验证信息匹配成功,根据所述第二交互信息与所述服务器进行交互,所述第二待验证信息由所述服务器按照所述预设编码算法对第二解密信息进行解码得到,所述第二解密信息由所述服务器按照所述预设令牌生成算法对所述第二令牌进行拆分得到。
  13. 根据权利要求12所述的装置,其特征在于,所述加密单元在对所述第一验证信息中的动态信息进行更新,得到第二验证信息时,具体用于:
    获取向所述服务器发送所述第一交互请求的请求时间;
    将所述第一验证信息中的动态时间更新为所述请求时间,得到所述第二验证信息。
  14. 一种信息交互装置,其特征在于,应用于服务器,所述装置包括:
    通信单元,用于接收客户端发送的所述客户端预先设置的第一验证信息;接收所述客户端发送的第一交互请求,所述第一交互请求包括第一令牌和第一交互信息,所述第一令牌由所述客户端按照预设令牌生成算法对第一加密信息和第二加密信息进行生成得到,所述第一加密信息由所述客户端按照预设编码算法对所述第一验证信息进行编码得到,所述 第二加密信息由所述客户端按照所述预设编码算法对预设算法进行编码得到;
    解密单元,用于按照所述预设令牌生成算法,对所述第一令牌进行拆分,得到第一解密信息和第二解密信息;按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息进行解码,得到第一待验证信息和第二待验证信息;若所述第二待验证信息与预设算法匹配成功,所述第一待验证信息与所述第一验证信息匹配成功,则根据所述第一交互信息与所述客户端进行交互。
  15. 根据权利要求14所述的装置,其特征在于,所述解密单元在按照所述预设令牌生成算法,对所述第一令牌进行拆分,得到第一解密信息和第二解密信息时,具体用于:
    按照预设缩短算法,对所述第一令牌进行延长处理,得到第五解密信息;
    按照预设组合算法,对所述第五解密信息进行拆分,得到第一解密信息、第二解密信息和第四解密信息;
    所述解密单元在按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息进行解码,得到第一待验证信息和第二待验证信息时,具体用于:
    按照所述预设编码算法,分别对所述第一解密信息、所述第二解密信息和所述第四解密信息进行解码,分别得到第一信息、第二信息和第三信息;
    若所述第二信息与所述预设算法匹配成功,则确定所述第二信息为所述第二待验证信息;
    按照预设组合算法,对所述第二信息和所述第一信息进行组合,得到第一组合信息,按照所述预设组合算法,对所述第二信息和所述第三信息进行组合,得到第二组合信息;
    若所述第一组合信息与所述第三信息匹配成功,则确定所述第一信息为所述第一待验证信息。
  16. 根据权利要求15所述的装置,其特征在于,所述第一令牌包括多个字符,所述解密单元在按照预设缩短算法,对所述第一令牌进行延长处理,得到第五解密信息时,具体用于:
    对所述多个字符中每一字符进行哈夫曼解码,以得到多个权值,每一权值对应一个字符;
    根据所述多个权值获取所述多个字符中每一字符的序列和数量;
    根据所述多个字符中每一字符的序列和数量获取所述第五解密信息。
  17. 一种信息交互装置,其特征在于,包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行以下步骤的指令:
    向服务器发送预先设置的第一验证信息;
    按照预设编码算法,分别对所述第一验证信息和预设算法进行编码,分别得到第一加密信息和第二加密信息;
    按照预设令牌生成算法,对所述第一加密信息和所述第二加密信息进行生成,得到第一令牌;
    向所述服务器发送第一交互请求,所述第一交互请求包括所述第一令牌和第一交互信息;
    若所述服务器确定第一待验证信息与所述第一验证信息匹配成功,则根据所述第一交互信息与所述服务器进行交互,所述第一待验证信息由所述服务器按照所述预设编码算法对第一解密信息进行解码得到,所述第一解密信息由所述服务器按照所述预设令牌生成算法对所述第一令牌进行拆分得到。
  18. 根据权利要求17所述的装置,其特征在于,在所述按照预设令牌生成算法,对所 述第一加密信息和所述第二加密信息进行生成,得到第一令牌时,所述程序具体包括用于执行以下步骤的指令:
    按照预设组合算法,对所述第一加密信息和所述第二加密信息进行组合,得到第三加密信息;
    按照所述预设编码算法,对所述第三加密信息进行编码,得到第四加密信息;
    按照所述预设组合算法,对所述第一加密信息、所述第二加密信息和所述第四加密信息进行组合,得到第五加密信息;
    按照预设缩短算法,对所述第五加密信息进行缩短处理,得到所述第一令牌。
  19. 一种信息交互装置,其特征在于,包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行以下步骤的指令:
    接收客户端发送的所述客户端预先设置的第一验证信息;
    接收所述客户端发送的第一交互请求,所述第一交互请求包括第一令牌和第一交互信息,所述第一令牌由所述客户端按照预设令牌生成算法对第一加密信息和第二加密信息进行生成得到,所述第一加密信息由所述客户端按照预设编码算法对所述第一验证信息进行编码得到,所述第二加密信息由所述客户端按照所述预设编码算法对预设算法进行编码得到;
    按照所述预设令牌生成算法,对所述第一令牌进行拆分,得到第一解密信息和第二解密信息;
    按照所述预设编码算法,分别对所述第一解密信息和所述第二解密信息进行解码,得到第一待验证信息和第二待验证信息;
    若所述第二待验证信息与预设算法匹配成功,所述第一待验证信息与所述第一验证信息匹配成功,则根据所述第一交互信息与所述客户端进行交互。
  20. 一种计算机非易失性可读存储介质,其特征在于,所述计算机非易失性可读存储介质存储计算机程序,所述计算机程序使得计算机执行以实现权利要求1-8任一项所述的方法。
PCT/CN2019/120084 2019-05-20 2019-11-22 信息交互方法、装置及存储介质 Ceased WO2020233033A1 (zh)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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 苏州科达科技股份有限公司 信息传输方法、客户端、服务器以及计算机可读存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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