A method and device for exiting an online banking system

By receiving and processing the client's exit request information and session key identification, finding and deleting the server's session key, it solves the security problem caused by the session key not being cleared after the user exits, and improves the security of the online banking system.

CN114710281BActive Publication Date: 2024-08-23INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210436726.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-24
Publication Date
2024-08-23
Estimated Expiration
2042-04-24

AI Technical Summary

Technical Problem

In the existing online banking system, after the user logs out, the TLS protocol session key on the server is not cleared, and may be stolen by criminals and logged in repeatedly, causing security issues.

Method used

By receiving the client's exit request information and session key ID, find and delete the corresponding session key and key ID, and end the session to ensure that the key is no longer used for repeated logins.

Benefits of technology

The security of the online banking system is improved, preventing others from maliciously obtaining session keys to log in repeatedly, and ensuring safe exit for users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114710281B
    Figure CN114710281B
Patent Text Reader

Abstract

The present invention provides a method and device for logging out of an online banking system, and relates to the field of information security technology. The method comprises: receiving a logout request message and a first session key identifier sent by a client; searching for a corresponding second session key locally according to the first session key identifier sent by the client; decrypting the logout request message using the second session key; and deleting the local second session key and the second session key identifier if it is determined that the logout request message is included. The method and device for logging out of an online banking system provided by an embodiment of the present invention searches for a stored user session key identifier and a corresponding session key upon receiving the logout request, and deletes them. When logging out of the online banking, the session key for maintaining the session stored by the server is deleted. Even if others obtain the session key of the client, they cannot re-establish a session with the server, thereby improving the security of the data of the online banking system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security technology, and in particular to a method and device for exiting an online banking system. Background Art

[0002] In order to ensure the transmission security of online banking system data and the identity of customers, financial institutions provide an online banking security login solution. Users open the U-Shield digital certificate authentication tool in online banking, and the online banking system issues a digital certificate to the user's U-Shield. Users access the online banking system through the online banking client (browser, APP, etc.) and log in to the online banking through the U-Shield digital certificate. The client and the online banking system complete the TLS protocol session key negotiation and the establishment of a secure transmission channel through the TLS protocol and the U-Shield digital signature function. The online banking system uses the TLS protocol session key corresponding to the session key identifier (Session ID) in the TLS protocol to maintain the validity of the session between the online banking client and the server and the persistence of the user's online banking login status. When the user needs to exit the online banking, the TLS protocol session key is cleared, and the client cannot use the TLS session key to maintain a valid session between the client and the server. Therefore, the user cannot continue to use the online banking, so as to achieve the purpose of the user's safe exit from the online banking login.

[0003] The existing technology mainly clears the TLS protocol session key through the security component interface provided by the client operating system to close the session between the client and the server to achieve the purpose of safe logout. However, the above method has the problem that the TLS protocol session key stored on the server is not cleared after the client logs out. At this time, if the TLS protocol session key that has not been deleted by the client is exposed to the Internet, it may be stolen by criminals after being implanted with a virus and used to establish a session with the server to repeatedly log in to the online bank. Summary of the invention

[0004] In view of the problems in the prior art, an embodiment of the present invention provides a method and device for logging out of an online banking system, which can at least partially solve the problems in the prior art.

[0005] In a first aspect, the present invention provides a method for exiting an online banking system, comprising:

[0006] Receiving a logout request message and a first session key identifier sent by a client, wherein the logout request message includes a logout request message, the logout request message is encrypted by a first session key of the client, and the first session key corresponds to the first session key identifier in a one-to-one manner;

[0007] Searching for a corresponding second session key locally according to the first session key identifier sent by the client, wherein the first session key is the same as the second session key;

[0008] decrypting the exit request information using the second session key;

[0009] If it is determined that the decrypted logout request information contains a logout request message, the local second session key and the second session key identifier are deleted to end the session with the client, wherein the second session key and the second session key identifier have a one-to-one correspondence.

[0010] Further, the first session key and the second session key are obtained by the following steps:

[0011] Receive a TLS session request sent by a client, wherein the TLS session request includes TLS session request information and a first random number;

[0012] Send a U-shield digital certificate request and a second random number to the client, so that the client generates a pre-master key and a first session key identifier, then uses the first random number, the second random number and the pre-master key to generate a first session key, and encrypts the pre-master key with the server certificate public key and sends it to the server together with the first session key identifier;

[0013] Receiving the encrypted pre-master key and the first session key identifier sent by the client;

[0014] After decrypting the pre-master key using the server certificate public key, generating a second session key using the first random number, the second random number and the pre-master key;

[0015] The first session key identifier is stored as the second session key identifier corresponding to the second session key.

[0016] Furthermore, the TLS session request information includes TLS protocol version number information and encryption algorithm information.

[0017] Furthermore, after deleting the local second session key and the second session key identifier, the method further includes: sending a security exit prompt to the client.

[0018] Furthermore, the logout request message includes a logout request identifier, a logout time, a client IP address, and a terminal MAC address.

[0019] In a second aspect, the present invention proposes a logout method for an online banking system, comprising: a client sends a logout request message and a first session key identifier to the server, wherein the logout request message includes a logout request message, the logout request message is encrypted by the client's first session key, and the first session key corresponds to the first session key identifier one-to-one, so that the server uses the second session key to decrypt the logout request message, wherein the first session key and the second session key are the same; if the server determines that the decrypted logout request message contains the logout request message, it deletes the local second session key and the second session key identifier to end the session with the client, wherein the second session key corresponds to the second session key identifier one-to-one.

[0020] Further, the first session key and the second session key are obtained by the following steps:

[0021] Sending a TLS session request to the server, wherein the TLS session request includes TLS session request information and a first random number;

[0022] The method comprises: receiving a U-shield digital certificate request and a second random number sent by the server, generating a pre-master key and a first session key identifier, using the first random number, the second random number and the pre-master key to generate a first session key, encrypting the pre-master key with the server certificate public key and sending it to the server together with the first session key identifier; so that the server uses the server certificate public key to decrypt the pre-master key, and then uses the first random number, the second random number and the pre-master key to generate a second session key and saves the first session key identifier as the second session key identifier corresponding to the second session key.

[0023] In a third aspect, the present invention provides an exit device for an online banking system, comprising:

[0024] A first receiving module is used to receive a logout request message and a first session key identifier sent by a client, wherein the logout request message includes a logout request message, the logout request message is encrypted by a first session key of the client, and the first session key corresponds to the first session key identifier in a one-to-one manner;

[0025] A first search module, configured to locally search for a corresponding second session key according to the first session key identifier sent by the client, wherein the first session key is the same as the second session key;

[0026] A first decryption module, used to decrypt the exit request information using the second session key;

[0027] The exit judgment module is used to judge whether the decrypted exit request information contains a logout request message, and then delete the local second session key and the second session key identifier to end the session with the client, wherein the second session key corresponds to the second session key identifier one by one.

[0028] In a fourth aspect, the present invention provides an exit device for an online banking system, comprising:

[0029] a request sending module, configured to send a logout request message and a first session key identifier to a server, so that the server searches for a corresponding second session key according to the first session key identifier, decrypts the logout request message using the second session key, and after determining that the decrypted logout request message contains a logout request message, deletes the second session key and the second session key identifier to end the corresponding session;

[0030] Among them, the logout request information includes a logout request message, the logout request information is encrypted by a first session key, the first session key corresponds to the first session key identifier one by one; the first session key is the same as the second session key; the second session key corresponds to the second session key identifier one by one.

[0031] On the other hand, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for exiting the online banking system described in any of the above embodiments when executing the program.

[0032] In yet another aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for exiting the online banking system described in any of the above embodiments.

[0033] The logout device of the online banking system provided by the embodiment of the present invention searches for the user session key identifier and the corresponding session key stored in the server after receiving the logout request from the client, and deletes them. When logging out of the online banking, the session key stored in the server for maintaining the session is deleted. Even if others maliciously obtain the session key of the client, they cannot re-establish a session with the server, so they can log in to the online banking again, thereby improving the security of the online banking system data. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0035] Figure 1 The figure is a flow chart of a method for exiting an online banking system provided in one embodiment of the present invention.

[0036] Figure 2 The figure is a flow chart of a method for exiting an online banking system provided in one embodiment of the present invention.

[0037] Figure 3 The figure is a flow chart of a method for exiting an online banking system provided in one embodiment of the present invention.

[0038] Figure 4 The figure is a flow chart of a method for exiting an online banking system provided in one embodiment of the present invention.

[0039] Figure 5 It is a schematic diagram of the structure of a logout device of an online banking system provided by an embodiment of the present invention.

[0040] Figure 6 It is a schematic diagram of the structure of a logout device of an online banking system provided by an embodiment of the present invention.

[0041] Figure 7 It is a schematic diagram of the structure of a logout device of an online banking system provided by an embodiment of the present invention.

[0042] Figure 8 It is a schematic diagram of the structure of a logout device of an online banking system provided by an embodiment of the present invention.

[0043] Fig. 9 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other arbitrarily.

[0045] The following takes the server as an example to illustrate the implementation process of the online banking system logout method provided by the embodiment of the present invention. The execution subject of the online banking system logout method provided by the embodiment of the present invention includes but is not limited to the server.

[0046] Figure 1 FIG. 1 is a flow chart of a method for exiting an online banking system provided by an embodiment of the present invention. Figure 1 As shown, the method for exiting the online banking system provided by the embodiment of the present invention includes:

[0047] S101: receiving a logout request message and a first session key identifier sent by a client, wherein the logout request message includes a logout request message, the logout request message is encrypted by a first session key of the client, and the first session key corresponds to the first session key identifier in a one-to-one manner;

[0048] In this step, the server receives the logout request and the first session key identifier sent by the client, thereby triggering the server to search for and delete the second session key, thereby terminating the session between the server and the client.

[0049] Specifically, the logout request information includes a logout request message, and the logout request message is used to trigger the server to start searching for the second session key stored locally according to the first session key identifier.

[0050] The logout request message is composed of a logout request identifier, a logout time, a client IP address and a terminal MAC address.

[0051] The first session key identifier (Session ID) is a text string, which is a unique identifier corresponding to the first session key (Session Key) used to maintain the stability of the session channel in the online banking connection session.

[0052] S102: Searching for a corresponding second session key locally according to the first session key identifier sent by the client, wherein the first session key is the same as the second session key;

[0053] In this step, the server uses the first session key identifier to search locally for the corresponding second session key according to the relationship between the first session key identifier and the first session key.

[0054] Specifically, the first session key is generated by the first random number generated when the client issues a TLS session request, and is generated by the pre-master key and the second random number generated after the client sends a U-Shield digital certificate request and a second random number, and is stored locally on the client in correspondence with the first session key identifier.

[0055] After receiving the encrypted pre-master key sent by the client, the server uses the server certificate public key to decrypt the pre-master key, and then uses the pre-master key, the first random number and the second random number to generate a second session key, and stores it locally on the server in correspondence with the second session key identifier. Therefore, the first session key and the second session key are the same, and the server uses the first session key identifier to search for the corresponding second session key locally based on the correspondence between the first session key identifier and the first session key.

[0056] S103: decrypting the exit request information using the second session key;

[0057] In this step, the server uses the second session key to decrypt the exit request information to determine whether to clear the locally stored second session key and its corresponding second session key identifier.

[0058] Specifically, the server uses the second session key found locally in S102 to decrypt the exit request information.

[0059] Since the exit request information is encrypted by the client using the first session key before being sent out, after receiving the encrypted exit request, the server uses the second session key which is the same as the first session key to decrypt the exit request information.

[0060] S104: If it is determined that the decrypted logout request information contains a logout request message, the local second session key and the second session key identifier are deleted to end the session with the client, wherein the second session key and the second session key identifier have a one-to-one correspondence.

[0061] In this step, the decrypted exit request information is identified to confirm whether to delete the second reply key and the second session key identifier stored locally on the server, thereby terminating the conversation between the server and the client.

[0062] Specifically, the exit request information decrypted using the second session key in S103 is identified and judged. If it is determined that the decrypted exit request information contains an exit request message, since the exit request message contains a logout request identifier, the server is triggered to start a secure logout, thereby terminating the session with the client.

[0063] Since the session between the online banking client and the server is based on the TLS protocol (Transport Layer Security Protocol), the online banking system uses the session key corresponding to the session key identifier in the TLS protocol to maintain the validity of the session between the online banking client and the server and the persistence of the user's online banking login status. The online banking server and the client maintain the session by saving and recording their respective first session keys and second session keys.

[0064] It is understandable that if the online banking server and the client cannot correspond to each other through the saved records of their respective first session keys and second session keys, for example, the first session key and the second session key are not the same or the server does not have the second session key corresponding to the first session key, then a session cannot be established between the client and the server or an established session cannot be maintained.

[0065] Therefore, if it is determined that the decrypted exit request information contains an exit request message, the server deletes the second session key stored locally so that the server does not have a second session key that is the same as the first session key of the client, thereby terminating the session between the client and the server. In addition, since the server deletes the second session key, even if the first session key stored locally on the client is maliciously obtained by others and other clients try to establish a session with the server, the session cannot be established because the server does not have the corresponding second session key, thereby ensuring the security of the user logging into the online banking.

[0066] The logout method of the online banking system provided by the embodiment of the present invention searches for the user session key identifier and the corresponding session key stored in the server after receiving the logout request from the client, and deletes them. When logging out of the online banking, the session key stored in the server for maintaining the session is deleted. Even if others maliciously obtain the session key of the client, they cannot re-establish a session with the server, so they can log in to the online banking again, thereby improving the security of the data of the online banking system.

[0067] Figure 2 FIG. 1 is a flow chart of a method for exiting an online banking system provided by an embodiment of the present invention. Figure 2 As shown, based on the above embodiments, further, the first session key and the second session key are obtained by the following steps:

[0068] S201: Receive a TLS session request sent by a client, where the TLS session request includes TLS session request information and a first random number;

[0069] In this step, the server receives the TLS session request sent by the client.

[0070] Specifically, when a user logs in from an online banking client, the online banking client sends a TLS session request and a randomly generated first random number to the online banking server, thereby starting to establish a user session between the client and the server.

[0071] At the same time, when the client sends the first random number to the server, the client also stores the first random number locally.

[0072] The TLS session request information includes TLS protocol version number information and encryption algorithm information, wherein the TLS protocol version number information is the version number of the TLS protocol supported by the client, and the encryption algorithm information is a set of encryption algorithm suites supported by the client. When the server receives the TLS protocol version number information and encryption algorithm information, it selects the version number of the TLS protocol and the set of encryption algorithm suites supported by both parties.

[0073] S202: Send a U-shield digital certificate request and a second random number to the client, so that the client generates a pre-master key and a first session key identifier, generates a first session key using the first random number, the second random number and the pre-master key, and encrypts the pre-master key using the server certificate public key and sends it to the server together with the first session key identifier;

[0074] In this step, the server sends a U-Shield digital certificate request and a second random number to the client, so that the client generates a pre-master key and a first session key identifier, and then uses the first random number, the second random number and the pre-master key to generate a first session key, and encrypts the pre-master key with the server certificate public key and sends it to the server together with the first session key identifier.

[0075] Specifically, after selecting a set of TLS protocol version numbers and encryption algorithm suites supported by both the client and the server, the server randomly generates a second random number and sends it to the client together with the U-Shield digital certificate request. At the same time, the second random number is also stored locally on the server.

[0076] After receiving the U-Shield digital certificate request sent by the server, the client generates a pre-master key and a first session key identifier, and uses the first random number stored locally, the second random number sent by the server and the pre-master key to generate a first session key.

[0077] After generating the pre-master key, the client encrypts the pre-master key using the server certificate public key encryption, and sends the encrypted pre-master key and the first session key identifier to the server.

[0078] S203: Receive the encrypted pre-master key and the first session key identifier sent by the client;

[0079] In this step, the pre-master key and the first session key identifier encrypted by the server certificate public key and sent by the client are received.

[0080] Specifically, after receiving the U-Shield digital certificate request sent by the server, the client generates a pre-master key and a first session key identifier, and uses the first random number stored locally, the second random number sent by the server and the pre-master key to generate a first session key.

[0081] After generating the pre-master key, the client encrypts the pre-master key using the server certificate public key encryption, and sends the encrypted pre-master key and the first session key identifier to the server.

[0082] S204: After decrypting the pre-master key using the server certificate public key, generate a second session key using the first random number, the second random number and the pre-master key;

[0083] In this step, the pre-master key is decrypted and used together with the first random number and the second random number to generate a second session key.

[0084] Specifically, after receiving the pre-master key encrypted by the client, the server uses the server certificate public key to decrypt the pre-master key, and uses the first random number sent by the client and the second random number locally stored by the server to generate a second session key.

[0085] S205: Save the first session key identifier as the second session key identifier corresponding to the second session key.

[0086] In this step, the server generates a second session key identifier and stores it in correspondence with the second session key.

[0087] Specifically, after receiving the encrypted pre-master key sent by the client, the server uses the server certificate public key to decrypt the pre-master key, generates the pre-master key using the first random number and the second random number, and stores it locally on the server in correspondence with the second session key identifier. Therefore, the first session key and the second session key are the same, and the first session key identifier corresponding to the first session key that is the same as the second session key is used as the second session key identifier corresponding to the second session key, and the second session key and the second session key identifier are stored locally on the server in correspondence.

[0088] Figure 3 FIG. 1 is a flow chart of a method for exiting an online banking system provided by an embodiment of the present invention. Figure 3 As shown, based on the above embodiments, further, the method for exiting the online banking system provided by the embodiment of the present invention, after deleting the local second session key and the second session key identifier, further includes:

[0089] S105: Send a safe exit prompt to the client.

[0090] In this step, a safe exit prompt is sent to the client that has successfully exited.

[0091] Specifically, in S104, when it is determined that the decrypted exit request information contains an exit request message, the server deletes the second session key and the corresponding second session key identifier stored locally, so that the server does not have a second session key that is the same as the first session key of the client, thereby terminating the session between the client and the server. When the session between the client and the server ends, the server sends a security exit prompt to the client to prompt the user that the online banking has been safely exited.

[0092] The following takes the client server as an example to illustrate the implementation process of the online banking system logout method provided by the embodiment of the present invention. The execution subject of the online banking system logout method provided by the embodiment of the present invention includes but is not limited to the server.

[0093] The method for exiting an online banking system provided by an embodiment of the present invention includes:

[0094] The client sends a logout request message and a first session key identifier to the server, so that the server searches for a corresponding second session key according to the first session key identifier, decrypts the logout request message using the second session key, and after determining that the decrypted logout request message contains a logout request message, deletes the second session key and the second session key identifier to end the corresponding session;

[0095] Among them, the logout request information includes a logout request message, the logout request information is encrypted by a first session key, the first session key corresponds to the first session key identifier one by one; the first session key is the same as the second session key; the second session key corresponds to the second session key identifier one by one.

[0096] In this step, the client sends a quit request message and a first session key identifier to the server, so that the server deletes the local second session key and the second session key identifier to end the session with the client.

[0097] Specifically, the logout request information includes a logout request message, and the logout request message is used to trigger the server to start searching for the second session key stored locally according to the first session key identifier.

[0098] The logout request message is composed of a logout request identifier, a logout time, a client IP address and a terminal MAC address.

[0099] The first session key identifier (Session ID) is a text string, which is a unique identifier corresponding to the first session key (Session Key) used to maintain the stability of the session channel in the online banking connection session.

[0100] The steps of the method for the server to delete the local second session key and the second session key identifier to end the session with the client are described above and will not be repeated in this embodiment.

[0101] Figure 4 FIG. 1 is a flow chart of a method for exiting an online banking system provided by an embodiment of the present invention. Figure 4 As shown, based on the above embodiments, further, the first session key and the second session key are obtained by the following steps:

[0102] S401: Send a TLS session request to a server, where the TLS session request includes TLS session request information and a first random number;

[0103] In this step, a TLS session request is sent to the server.

[0104] Specifically, when a user logs in from an online banking client, the online banking client sends a TLS session request and a randomly generated first random number to the online banking server, thereby starting to establish a user session between the client and the server.

[0105] At the same time, when the client sends the first random number to the server, the client also stores the first random number locally.

[0106] The TLS session request information includes TLS protocol version number information and encryption algorithm information, wherein the TLS protocol version number information is the version number of the TLS protocol supported by the client, and the encryption algorithm information is a set of encryption algorithm suites supported by the client. When the server receives the TLS protocol version number information and encryption algorithm information, it selects the version number of the TLS protocol and the set of encryption algorithm suites supported by both parties.

[0107] S402: Receive a U-shield digital certificate request and a second random number sent by the server, generate a pre-master key and a first session key identifier, use the first random number, the second random number and the pre-master key to generate a first session key, encrypt the pre-master key with the server certificate public key and send it to the server together with the first session key identifier; so that the server uses the server certificate public key to decrypt the pre-master key, use the first random number, the second random number and the pre-master key to generate a second session key and save the first session key identifier as the second session key identifier corresponding to the second session key.

[0108] In this step, the client receives the U-Shield digital certificate request and the second random number sent by the server, generates a pre-master key and a first session key identifier, and then generates a first session key, and sends the encrypted pre-master key together with the first session key identifier to the server.

[0109] Specifically, after selecting a set of TLS protocol version numbers and encryption algorithm suites supported by both the client and the server, the server randomly generates a second random number and sends it to the client together with the U-Shield digital certificate request. At the same time, the second random number is also stored locally on the server.

[0110] After receiving the U-Shield digital certificate request sent by the server, the client generates a pre-master key and a first session key identifier, and uses the first random number stored locally, the second random number sent by the server and the pre-master key to generate a first session key.

[0111] After generating the pre-master key, the client encrypts the pre-master key using the server certificate public key encryption, and sends the encrypted pre-master key and the first session key identifier to the server.

[0112] Specifically, after the server uses the server certificate public key to decrypt the pre-master key, it uses the first random number, the second random number and the pre-master key to generate a second session key and uses the first session key identifier as the second session key identifier. The contents corresponding to the second session key are stored as described above and will not be repeated in this embodiment.

[0113] The logout method of the online banking system provided by the embodiment of the present invention searches for the user session key identifier and the corresponding session key stored in the server after receiving the logout request from the client, and deletes them. When logging out of the online banking, the session key for maintaining the session stored in the server is deleted. Even if others maliciously obtain the session key of the client, they cannot re-establish a session with the server, so they cannot log in to the online banking again, thereby improving the security of the data of the online banking system.

[0114] Figure 5 FIG. 1 is a schematic diagram of a logout device for an online banking system provided by an embodiment of the present invention. Figure 5 As shown, the logout device of the online banking system provided by the embodiment of the present invention includes a first receiving module 501, which is used to receive the logout request information and the first session key identifier sent by the client, wherein the logout request information includes a logout request message, the logout request information is encrypted by the first session key of the client, and the first session key corresponds to the first session key identifier one by one; a first search module 502, which is used to search the corresponding second session key locally according to the first session key identifier sent by the client, wherein the first session key and the second session key are the same; a first decryption module 503, which is used to decrypt the logout request information using the second session key; a logout judgment module 504, which is used to judge whether the decrypted logout request information contains the logout request message, and then delete the local second session key and the second session key identifier to end the session with the client, wherein the second session key corresponds to the second session key identifier one by one; wherein:

[0115] The first receiving module 501 is used to receive a logout request and a first session key identifier sent by the client, thereby triggering the server to search for and delete the second session key, thereby terminating the session between the server and the client.

[0116] The first searching module 502 is configured to use the first session key identifier to locally search for the corresponding second session key according to the relationship between the first session key identifier and the first session key.

[0117] The first decryption module 503 is used to decrypt the exit request information using the second session key, so as to determine whether to clear the second session key and its corresponding second session key identifier stored locally.

[0118] The exit determination module 504 is used to identify the decrypted exit request information to confirm whether to delete the second reply key and the second session key identifier stored locally on the server, thereby terminating the conversation between the server and the client.

[0119] Figure 6 FIG. 1 is a schematic diagram of a logout device for an online banking system provided by an embodiment of the present invention. Figure 6As shown, the exit device of the online banking system provided by the embodiment of the present invention includes: a first receiving module 601, which is used to receive a TLS session request sent by a client, and the TLS session request includes TLS session request information and a first random number; a first sending module 602, which is used to send a U-shield digital certificate request and a second random number to the client, so that after the client generates a pre-master key and a first session key identifier, the first session key is generated using the first random number, the second random number and the pre-master key, and the pre-master key is encrypted with the server certificate public key and sent to the server together with the first session key identifier; a second receiving module 603, which is used to receive the encrypted pre-master key and the first session key identifier sent by the client; a key generation module 604, which is used to use the first random number, the second random number and the pre-master key to generate a second session key after decrypting the pre-master key using the server certificate public key; a storage module 605, which is used to store the first session key identifier as the second session key identifier corresponding to the second session key. Wherein:

[0120] The first receiving module 601 is used to receive a TLS session request sent by a client.

[0121] The first sending module 602 is used for the server to send a U-shield digital certificate request and a second random number to the client, so that the client generates a pre-master key and a first session key identifier, and then uses the first random number, the second random number and the pre-master key to generate a first session key, and encrypts the pre-master key with the server certificate public key and sends it to the server together with the first session key identifier.

[0122] The second receiving module 603 is used to receive the pre-master key and the first session key identifier encrypted by the server certificate public key and sent by the client.

[0123] The key generation module 604 is configured to decrypt the pre-master key and generate a second session key with the first random number and the second random number.

[0124] The storage module 605 is used for the server to generate a second session key identifier and store it in correspondence with the second session key.

[0125] Figure 7 FIG. 1 is a schematic diagram of a logout device for an online banking system provided by an embodiment of the present invention. Figure 7 As shown, the exit device of the online banking system provided by the embodiment of the present invention further includes: a prompt module 505, which is used to send a safe exit prompt to the client.

[0126] The prompt module 505 is used to send a safe exit prompt to the client that has successfully exited.

[0127] On the basis of the above embodiments, further, the exit device of the online banking system provided by the embodiment of the present invention is a request sending module, which is used to

[0128] Send a logout request message and a first session key identifier to a server, so that the server searches for a corresponding second session key according to the first session key identifier, decrypts the logout request message using the second session key, and after determining that the decrypted logout request message contains a logout request message, deletes the second session key and the second session key identifier to end the corresponding session; wherein the logout request message includes a logout request message, the logout request message is encrypted by a first session key, the first session key corresponds to the first session key identifier one-to-one; the first session key is the same as the second session key; the second session key corresponds to the second session key identifier one-to-one.

[0129] in:

[0130] The request sending module is used to send the exit request information and the first session key identifier to the server, so that the server deletes the local second session key and the second session key identifier to end the session with the client.

[0131] Figure 8 FIG. 1 is a schematic diagram of a logout device for an online banking system provided by an embodiment of the present invention. Figure 8 As shown, the exit device of the online banking system provided by the embodiment of the present invention includes:

[0132] The second sending module 801 is used to send a TLS session request to the server, where the TLS session request includes TLS session request information and a first random number;

[0133] The third receiving module 802 is used to receive the U shield digital certificate request and the second random number sent by the server, generate the pre-master key and the first session key identifier, use the first random number, the second random number and the pre-master key to generate the first session key, and use the server certificate public key to encrypt the pre-master key and send it to the server together with the first session key identifier; so that the server uses the server certificate public key to decrypt the pre-master key, use the first random number, the second random number and the pre-master key to generate the second session key and save the first session key identifier as the second session key identifier corresponding to the second session key. Wherein:

[0134] The second sending module 801 is used to send a TLS session request to the server.

[0135] The third receiving module 802 is used to receive the U-shield digital certificate request and the second random number sent by the server, generate the first session key after generating the pre-master key and the first session key identifier, and send the encrypted pre-master key together with the first session key identifier to the server.

[0136] The server embodiment provided in the embodiment of the present invention can be specifically used to execute the processing flow of the above-mentioned method embodiments. Its functions are not described in detail here, and reference can be made to the detailed description of the above-mentioned method embodiments.

[0137] It should be noted that the method and device for exiting the online banking system provided in the embodiment of the present invention can be used in the financial field, and can also be used in any technical field other than the financial field. The embodiment of the present invention does not limit the application field of the method and device for exiting the online banking system.

[0138] Fig. 9 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention is shown in FIG. Fig. 9As shown, the electronic device may include: a processor 901, a communication interface 902, a memory 903 and a communication bus 904, wherein the processor 901, the communication interface 902 and the memory 903 complete mutual communication through the communication bus 904. The processor 901 may call the logic instructions in the memory 903 to execute the following method: receiving a logout request message and a first session key identifier sent by a client, wherein the logout request message includes a logout request message, the logout request message is encrypted by the first session key of the client, and the first session key corresponds to the first session key identifier one by one; searching the corresponding second session key locally according to the first session key identifier sent by the client, wherein the first session key and the second session key are the same; decrypting the logout request message using the second session key; if it is determined that the decrypted logout request message contains a logout request message, deleting the local second session key and the second session key identifier to end the session with the client, wherein the second session key corresponds to the second session key identifier one by one. And the client sends a logout request message and a first session key identifier to the server, wherein the logout request message includes a logout request message, the logout request message is encrypted by the first session key of the client, and the first session key corresponds to the first session key identifier one-to-one, so that the server uses the second session key to decrypt the logout request message, wherein the first session key and the second session key are the same; if the server determines that the decrypted logout request message contains a logout request message, it deletes the local second session key and the second session key identifier to end the session with the client, wherein the second session key corresponds to the second session key identifier one-to-one.

[0139] In addition, the logic instructions in the above-mentioned memory 903 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0140] The present embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: receiving a logout request message and a first session key identifier sent by a client, wherein the logout request message includes a logout request message, and the logout request message is encrypted by a first session key of the client, and the first session key corresponds to the first session key identifier one by one; searching for a corresponding second session key locally according to the first session key identifier sent by the client, wherein the first session key and the second session key are the same; decrypting the logout request message using the second session key; if it is determined that the decrypted logout request message contains a logout request message, deleting the local second session key and the second session key identifier to end the session with the client, wherein the second session key corresponds to the second session key identifier one by one. And the client sends a logout request message and a first session key identifier to the server, wherein the logout request message includes a logout request message, the logout request message is encrypted by the first session key of the client, and the first session key corresponds to the first session key identifier one-to-one, so that the server uses the second session key to decrypt the logout request message, wherein the first session key and the second session key are the same; if the server determines that the decrypted logout request message contains a logout request message, it deletes the local second session key and the second session key identifier to end the session with the client, wherein the second session key corresponds to the second session key identifier one-to-one.

[0141] The present embodiment provides a computer-readable storage medium, which stores a computer program, and the computer program enables the computer to execute the methods provided by the above-mentioned method embodiments, for example, including: receiving a logout request message and a first session key identifier sent by a client, wherein the logout request message includes a logout request message, and the logout request message is encrypted by the first session key of the client, and the first session key corresponds to the first session key identifier one by one; searching for the corresponding second session key locally according to the first session key identifier sent by the client, wherein the first session key and the second session key are the same; decrypting the logout request message using the second session key; if it is determined that the decrypted logout request message contains a logout request message, deleting the local second session key and the second session key identifier to end the session with the client, wherein the second session key corresponds to the second session key identifier one by one. And the client sends a logout request message and a first session key identifier to the server, wherein the logout request message includes a logout request message, the logout request message is encrypted by the first session key of the client, and the first session key corresponds to the first session key identifier one-to-one, so that the server uses the second session key to decrypt the logout request message, wherein the first session key and the second session key are the same; if the server determines that the decrypted logout request message contains a logout request message, it deletes the local second session key and the second session key identifier to end the session with the client, wherein the second session key corresponds to the second session key identifier one-to-one.

[0142] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0143] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0144] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0145] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

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

[0147] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for exiting an online banking system, characterized in that: include: Receiving a logout request message and a first session key identifier sent by a client, wherein the logout request message includes a logout request message, the logout request message is encrypted by a first session key of the client, the first session key corresponds to the first session key identifier one by one, and the logout request message is used to trigger the server to start searching for a second session key stored locally according to the first session key identifier; Searching for a corresponding second session key locally according to the first session key identifier sent by the client, wherein the first session key is the same as the second session key; decrypting the exit request information using the second session key; If it is determined that the decrypted logout request information contains a logout request message, deleting the local second session key and the second session key identifier to end the session with the client, wherein the second session key and the second session key identifier have a one-to-one correspondence; The first session key and the second session key are obtained by the following steps: Receive a TLS session request sent by a client, wherein the TLS session request includes TLS session request information and a first random number, and the TLS session request information includes TLS protocol version number information and encryption algorithm information; Send a U-shield digital certificate request and a second random number to the client, so that the client generates a pre-master key and a first session key identifier, then uses the first random number, the second random number and the pre-master key to generate a first session key, and encrypts the pre-master key with the server certificate public key and sends it to the server together with the first session key identifier; Receiving the encrypted pre-master key and the first session key identifier sent by the client; After decrypting the pre-master key using the server certificate public key, generating a second session key using the first random number, the second random number and the pre-master key; The first session key identifier is stored as the second session key identifier corresponding to the second session key.

2. The method for exiting the online banking system according to claim 1, characterized in that: After deleting the local second session key and the second session key identifier, the method further includes: Send a safe exit prompt to the client.

3. The method for exiting the online banking system according to claim 1, characterized in that: The logout request message includes a logout request identifier, a logout time, a client IP address, and a terminal MAC address.

4. A method for exiting an online banking system, characterized in that: include: Sending a logout request message and a first session key identifier to a server, so that the server searches for a corresponding second session key according to the first session key identifier, decrypts the logout request message using the second session key, and after determining that the decrypted logout request message contains a logout request message, deletes the second session key and the second session key identifier to end the corresponding session; The logout request information includes a logout request message, the logout request information is encrypted by a first session key, the first session key corresponds to the first session key identifier in a one-to-one manner; the first session key is the same as the second session key; the second session key corresponds to the second session key identifier in a one-to-one manner; The first session key and the second session key are obtained by the following steps: Sending a TLS session request to the server, wherein the TLS session request includes TLS session request information and a first random number, wherein the TLS session request information includes TLS protocol version number information and encryption algorithm information; The method comprises: receiving a U-shield digital certificate request and a second random number sent by the server, generating a pre-master key and a first session key identifier, using the first random number, the second random number and the pre-master key to generate a first session key, encrypting the pre-master key with the server certificate public key and sending it to the server together with the first session key identifier; so that the server uses the server certificate public key to decrypt the pre-master key, and then uses the first random number, the second random number and the pre-master key to generate a second session key and saves the first session key identifier as the second session key identifier corresponding to the second session key.

5. An exit device for an online banking system, characterized in that: include: A first receiving module, configured to receive a logout request message and a first session key identifier sent by a client, wherein the logout request message includes a logout request message, the logout request message is encrypted by a first session key of the client, and the first session key corresponds to the first session key identifier in a one-to-one manner; A first search module, configured to locally search for a corresponding second session key according to the first session key identifier sent by the client, wherein the first session key is the same as the second session key; A first decryption module, used to decrypt the exit request information using the second session key; a logout judgment module, configured to judge that the decrypted logout request information contains a logout request message, and then delete the local second session key and the second session key identifier to end the session with the client, wherein the second session key and the second session key identifier have a one-to-one correspondence; The first session key and the second session key are obtained by the following steps: Receive a TLS session request sent by a client, wherein the TLS session request includes TLS session request information and a first random number, and the TLS session request information includes TLS protocol version number information and encryption algorithm information; Send a U-shield digital certificate request and a second random number to the client, so that the client generates a pre-master key and a first session key identifier, then uses the first random number, the second random number and the pre-master key to generate a first session key, and encrypts the pre-master key with the server certificate public key and sends it to the server together with the first session key identifier; Receiving the encrypted pre-master key and the first session key identifier sent by the client; After decrypting the pre-master key using the server certificate public key, generating a second session key using the first random number, the second random number and the pre-master key; The first session key identifier is stored as the second session key identifier corresponding to the second session key.

6. An exit device for an online banking system, characterized in that: include: a request sending module, configured to send a logout request message and a first session key identifier to a server, so that the server searches for a corresponding second session key according to the first session key identifier, decrypts the logout request message using the second session key, and after determining that the decrypted logout request message contains a logout request message, deletes the second session key and the second session key identifier to end the corresponding session; The logout request information includes a logout request message, the logout request information is encrypted by a first session key, the first session key corresponds to the first session key identifier in a one-to-one manner; the first session key is the same as the second session key; the second session key corresponds to the second session key identifier in a one-to-one manner; The first session key and the second session key are obtained by the following steps: Sending a TLS session request to the server, wherein the TLS session request includes TLS session request information and a first random number, wherein the TLS session request information includes TLS protocol version number information and encryption algorithm information; The method comprises: receiving a U-shield digital certificate request and a second random number sent by the server, generating a pre-master key and a first session key identifier, using the first random number, the second random number and the pre-master key to generate a first session key, encrypting the pre-master key with the server certificate public key and sending it to the server together with the first session key identifier; so that the server uses the server certificate public key to decrypt the pre-master key, and then uses the first random number, the second random number and the pre-master key to generate a second session key and saves the first session key identifier as the second session key identifier corresponding to the second session key.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.