WO2020103285A1 - 基于对称加密的秘钥丢失找回方法及相关设备 - Google Patents
基于对称加密的秘钥丢失找回方法及相关设备Info
- Publication number
- WO2020103285A1 WO2020103285A1 PCT/CN2018/124181 CN2018124181W WO2020103285A1 WO 2020103285 A1 WO2020103285 A1 WO 2020103285A1 CN 2018124181 W CN2018124181 W CN 2018124181W WO 2020103285 A1 WO2020103285 A1 WO 2020103285A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- key
- random number
- ciphertext
- secret key
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0861—Generation of secret information including derivation or calculation of cryptographic keys or passwords
- H04L9/0869—Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
- H04L63/0435—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0816—Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
- H04L9/0819—Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0894—Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage
Definitions
- This application relates to the field of encryption technology, in particular to a method for recovering lost keys based on symmetric encryption and related equipment.
- the secret key is the key.
- the key refers to some secret information used to complete encryption, decryption, integrity verification and other cryptographic applications.
- the development of cryptography has promoted computer science, especially in the technologies used in computer and network security, such as access control and confidentiality of information.
- the symmetric encryption algorithm in the secret key is an earlier encryption algorithm.
- the data sender processes the plaintext (original data) and the encryption key together with a special encryption algorithm to make it into a complex encrypted ciphertext and sends it out.
- the recipient receives the ciphertext, if he wants to interpret the original text, he needs to decrypt the ciphertext using the encryption key and the inverse algorithm of the same algorithm in order to restore it to a readable plaintext.
- the symmetric encryption algorithm only one key is used. Both the sending and receiving parties use this key to encrypt and decrypt the data, which requires the decrypting party to know the encryption key in advance.
- a key recovery method based on symmetric encryption includes the following steps:
- Encrypt the data using the secret key generate a ciphertext, and send the ciphertext and the random number to the server;
- a key recovery device based on symmetric encryption includes the following modules:
- Generate a secret key module set to obtain the data that the user needs to encrypt and the input password, generate a random number by a random number generator, and generate the symmetric encrypted secret by using the preset symmetric key generation script with the password and the random number Key and store it;
- a ciphertext generation module configured to encrypt the data using the secret key, generate a ciphertext, and send the ciphertext and the random number to the server;
- a random number obtaining module configured to obtain a key retrieval request triggered by a user, initiate a key retrieval request to the server, and obtain the random number returned by the server;
- a computer device includes a memory and a processor.
- the memory stores computer-readable instructions.
- the processor is caused to perform the following steps:
- Encrypt the data using the secret key generate a ciphertext, and send the ciphertext and the random number to the server;
- a storage medium storing computer-readable instructions, which when executed by one or more processors, causes the one or more processors to perform the following steps:
- Encrypt the data using the secret key generate a ciphertext, and send the ciphertext and the random number to the server;
- the above key recovery method based on symmetric encryption and related equipment include obtaining data and password input by the user, generating a random number through a random number generator, and passing the password and the random number through a preset symmetry
- the secret key generation script generates a symmetrically encrypted secret key and stores it; the secret key is used to encrypt the data to generate a ciphertext, and the ciphertext and the random number are sent to the server; the secret triggered by the user is obtained
- a key retrieval request initiating a key retrieval request to the server to obtain the random number returned by the server; obtaining the password entered by the user again, and passing the password and the random number returned by the server through the
- the symmetric key generation script regenerates the secret key and stores the secret key to complete the retrieval of the secret key.
- This application uses the information entered by the user as a password, generates the secret key together with the random number generated by the random number generator, and encrypts the data. Each time the encrypted secret key is random, even if other people know the password, they cannot Decrypt the ciphertext. This application can achieve the purpose of generating different keys with a single password and encrypting different data. This application also saves the random number on the server side, obtains the random number through the key retrieval request, generates the secret key again, and realizes the key retrieval function.
- FIG. 1 is a flowchart of a method for recovering a lost key based on symmetric encryption in an embodiment
- FIG. 3 is a structural diagram of a key loss recovery device based on symmetric encryption in an embodiment.
- FIG. 1 is a flowchart of a method for recovering a lost key based on symmetric encryption in an embodiment of the present application, including the following steps:
- Step S1 Generate a secret key: Obtain the data that the user needs to encrypt and the entered password, generate a random number through a random number generator, generate a symmetric encrypted secret key through the preset symmetric key generation script, and perform storage.
- Clients can include computer terminals and mobile phone terminals.
- the client can set an information input interface, and the information input interface is provided with a password input field, a data upload interface, or a data input field.
- the passwords in this step may be the same.
- the password in this step may be a password of more than 6 digits composed of numbers, letters, or characters.
- the information input interface can be identified and judged according to the input content. When the input content is not a password of more than 6 digits composed of numbers, letters or characters, the information input interface is fed back with a prompt such as incorrect password setting.
- generating a random number by a random number generator includes:
- the random () function is preset in the storage medium, and a random number is generated by calling the random () function.
- the random () function is used to generate random numbers. Before calling, the random () function can be preset in the storage medium of the client.
- the user only needs to remember a single password, and in order to not decipher the secret key when the password is leaked, a random number generation step is added, and the secret key is generated by the generated random number together with the password.
- the total randomness corresponding to each secret key The numbers are all different, so the total random number of the secret key generated by other personnel can be reduced, and the security of the secret key is guaranteed.
- the password and the random number are generated through a preset symmetric key generation script to generate a symmetric encrypted key, and stored, including:
- Step S101 Acquire a key generator: preset an object of the key generation type in the storage medium, call the object of the key generation type, and set the name of the encryption algorithm.
- the encryption algorithm in this step may be any one of Blowfish algorithm, DES algorithm, DESede algorithm, HmacMD5 algorithm or HmacSHA1 algorithm.
- the Blowfish algorithm is a 64-bit block and variable key length symmetric key block cipher algorithm that can be used to encrypt 64-bit strings.
- the Blowfish algorithm has the characteristics of fast encryption, compactness, variable key length, and free use.
- the DES algorithm is called Data Encryption Standard, which is the data encryption standard. It is a block algorithm that uses key encryption.
- the DES algorithm has the advantages of short keys, simple encryption processing, and fast encryption and decryption. It is suitable for the occasion of encrypting large amounts of data. .
- the DESede algorithm is a symmetric encryption algorithm improved by the DES algorithm and has extremely strong security.
- the HMACMD5 algorithm is a keyed hash algorithm constructed from the MD5 hash function and is used as a hash-based message verification code (HMAC).
- HMACMD5 algorithm is an irreversible encryption algorithm that can be encrypted into any string A unique fixed-length code.
- the HmacSHA1 algorithm is based on the HMACMD5 algorithm.
- the HmacSHA1 algorithm uses a hash function to hash the mixed result, mix the resulting hash value with the key, and then apply the hash function again.
- the length of the output hash value is 160 bits.
- KeyGenerator kg KeyGenerator.getInstance ("DESede");
- Step S102 Initialize the key generator: initialize the length of the key.
- the length of the secret key obtained by the key generator obtained in step S101 can be initialized by calling the kg.init () method in KeyGenerator. If the initial key length is 168, then:
- Step S103 generating a secret key: setting the password and the random number to the total random number, and generating a symmetrically encrypted secret key.
- Step S104 Save the secret key: save the secret key in the secret key file by object serialization.
- FileOutputStream f new FileOutputStream ("key1.dat”);
- ObjectOutputStreamb newObjectOutputStream (f);
- Serialization is a process of describing objects as a series of bytes, used to solve the problems caused when reading and writing to the object stream.
- Serialization can write the state of an object in a stream for network transmission, or save it in a file or database, and read the stream when needed to reconstruct an identical object.
- this step saves the key by object serialization, so that the key can be read later.
- a preset key generator type object is generated, and a unique secret key is constructed and generated for each data to be encrypted, as long as the random number is known , Combined with the password, you can repeatedly generate the key.
- Step S2 Generate a ciphertext: encrypt the data with a secret key, generate a ciphertext, and send the ciphertext and random number to the server.
- the key is used to encrypt the data through a symmetric encryption algorithm, and the symmetric encryption algorithm uses the same encryption algorithm as in step S101.
- the server After receiving the ciphertext and random number, the server saves it in the database on the server side. Before the server saves the ciphertext and random number:
- sending the ciphertext and the random number to the server includes: obtaining the identifier input by the user, where the identifier is a unique mark corresponding to the ciphertext and the random number; and sending the ciphertext, the random number, and the identifier to the server together.
- the client also accepts the identifier input by the user. Since the identifier is a unique marker corresponding to the random number, this identifier is used for subsequent retrieval of the random number.
- the server saves the received identification together with random numbers and ciphertext in the database. When saving, it can be stored in a random number collection table in the form of a table. The cipher text, random number, and identifier sent by the client can be shown in Table 1 below. When the server saves, the client name can also be saved together.
- the client before the client sends the ciphertext, random number, and identification to the server, it also includes: renaming the file name of the ciphertext, and renaming the name as the identification.
- the identification can also be stored in the local database, so that the secret key can be retrieved later.
- the random number is marked by an identifier, and the ciphertext, the random number, and the identifier are sent to the server together.
- the user can easily retrieve a secret according to the user-defined identifier.
- the random number corresponding to the key.
- sending the ciphertext and the random number to the server includes: obtaining the timestamp of the current time, and sending the ciphertext, the random number, and the timestamp to the server together.
- a time stamp can also be used, and the time when the cipher text is generated or sent to the server can be used as the time stamp, and the file name of the cipher text can be renamed. Rename the name to timestamp.
- the client is sent to the server together with the ciphertext and random number.
- the random numbers and ciphertexts are distinguished by means of time stamps. Although it is difficult for users to find the random numbers and retrieve the secret keys, the ciphertexts are secret because there is no special identification for the ciphertexts. Sex is better. This embodiment can be used when there are few encrypted data.
- Step S3 Obtain a random number: obtain a key retrieval request triggered by the user, initiate a key retrieval request to the server, and obtain the random number returned by the server.
- the key retrieval interface can be set on the client.
- the key retrieval key field can be set in the key retrieval interface.
- the user can trigger the key retrieval request through the key retrieval interface.
- the key retrieval key field enter the identifier or timestamp corresponding to the key to be retrieved. So far, the key retrieval request contains the identifier or timestamp.
- all the saved logos or time stamps can also be displayed on the key retrieval interface, so that the user can select the logos or time stamps.
- the server After receiving the key retrieval request, the server obtains the corresponding random number from the database on the server side by identification or time stamp, and returns the random number to the client. The client obtains this random number for subsequent key generation .
- Step S4 retrieve the secret key: Obtain the password entered by the user again, regenerate the secret key and the random number returned by the server through a symmetric secret key generation script, and store the secret key to complete the retrieval of the secret key.
- the user triggers the key retrieval request through the key retrieval interface, the user also enters the password in the password input field. This password is used as the total randomness together with the random number obtained in step S3.
- generate the secret key through the symmetric key generation script again.
- the generated secret key is the same as the secret key generated in step S1 and can be used to decrypt the ciphertext.
- a secret key is generated by a password entered by the user and a random number to encrypt data.
- Each data to be encrypted corresponds to a different secret key. Even if a certain secret key is obtained, other encrypted data cannot be performed. Decryption ensures the reliability of the data.
- this embodiment regenerates the secret key together with the user's own password by means of random number retrieval, and realizes the secret key retrieval function. And users only need to remember a certain password to achieve separate encryption of different data.
- the user can repeatedly generate the secret key.
- it also includes authorization to view the data: when the encrypted data needs to be provided to the authorized party, the secret key and the identification are sent to the authorized party, and a viewing request is sent to the server through the authorized party. After receiving the ciphertext corresponding to the identifier returned by the server, the ciphertext is decrypted by the secret key to generate plaintext viewing data.
- the secret key of this application is in the hands of the client user, if a third-party organization needs to view the data, it not only needs to obtain the secret key, but also needs to download the ciphertext from the server.
- the identifier is sent to the authorizing party through the client, so that the server looks up the corresponding ciphertext according to the identifier and returns it to the authorizing party.
- the client can also send information to the authorized party through other methods such as time stamps, as long as it is convenient for the server to find the corresponding ciphertext.
- the ciphertext can be saved on the client, and the client can authorize a third-party organization to view the data, which greatly reduces the storage pressure on the client.
- the third-party organization Unable to decrypt other data, greatly improving the security of the data.
- This application is based on the symmetric encryption key recovery method.
- the key is generated by the combination of the password entered by the user and the random number, and the random number is stored on the server to facilitate the subsequent retrieval of the key.
- the user only needs to It is enough to remember the entered password, the content of the memory is less, it is not easy to forget, and the secret key is in the user end, even if the secret key is lost, the user can directly generate and retrieve the secret key.
- a device for recovering lost keys based on symmetric encryption includes the following modules:
- Generate a secret key module set to obtain the data that the user needs to encrypt and the input password, generate a random number by a random number generator, and generate the symmetric encrypted secret by using the preset symmetric key generation script with the password and the random number Key and store it;
- a ciphertext generation module configured to encrypt the data using the secret key, generate a ciphertext, and send the ciphertext and the random number to the server;
- a random number obtaining module configured to obtain a key retrieval request triggered by a user, initiate a key retrieval request to the server, and obtain the random number returned by the server;
- the key generation module is also set to preset a random () function in the storage medium, and generate a random number by calling the random () function.
- generating the key module includes:
- Set the name unit set to preset the object of the key generation type in the storage medium, call the object of the key generation type, and set the name of the encryption algorithm
- Initialization unit set to the length of the initialization key
- the ciphertext generation module is also set to obtain a user-entered identifier, which is a unique label corresponding to the ciphertext and the random number; the ciphertext, the random number, and the identifier are sent to the server together.
- the ciphertext generation module is further configured to rename the file name of the ciphertext, and the renamed name is the identifier.
- an authorized viewing data module which is configured to send the secret key and the identification to the authorized party when the encrypted data needs to be provided to the authorized party, and send a viewing request to the server through the authorized party, the viewing request includes the identification After receiving the ciphertext corresponding to the identifier returned by the server, the authorized party decrypts the ciphertext with the secret key to generate plaintext viewing data.
- the ciphertext generation module is also set to obtain the timestamp of the current time, and send the ciphertext, random number, and timestamp to the server together.
- a computer device which includes a memory and a processor.
- the memory stores computer-readable instructions.
- the processor is executed based on symmetric encryption in the foregoing embodiments Steps in the recovery method of the lost key.
- a storage medium storing computer-readable instructions.
- the one or more processors execute the symmetric encryption based on the above embodiments Steps in the recovery method of the lost key.
- the storage medium may be a non-volatile storage medium.
- the program may be stored in a computer-readable storage medium, and the storage medium may include: Read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, 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
Claims (20)
- 一种基于对称加密的秘钥丢失找回方法,包括:获取用户需要加密的数据和输入的密码,通过随机数发生器生成随机数,将所述密码和所述随机数通过预设的对称秘钥生成脚本生成对称加密的秘钥,并进行存储;采用所述秘钥对所述数据进行加密,生成密文,将所述密文和所述随机数发送给服务器;获取用户触发的秘钥找回请求,向所述服务器发起秘钥找回请求,获取所述服务器返回的所述随机数;再次获取用户输入的密码,将所述密码和所述服务器返回的所述随机数通过所述对称秘钥生成脚本重新生成所述秘钥,并将所述秘钥进行存储,完成所述秘钥的找回。
- 根据权利要求1所述的基于对称加密的秘钥丢失找回方法,其中,所述通过随机数发生器生成随机数,包括:在存储介质中预设random()函数,通过调用所述random()函数生成所述随机数。
- 根据权利要求1所述的基于对称加密的秘钥丢失找回方法,其中,所述将所述密码和所述随机数通过预设的对称秘钥生成脚本生成对称加密的秘钥,并进行存储,包括:在存储介质中预设秘钥生成类型的对象,调用所述秘钥生成类型的对象,设置加密算法的名称;初始化秘钥的长度;将所述密码和所述随机数设置为总随机数,生成一个对称加密的秘钥;通过对象序列化方式将所述秘钥保存在秘钥文件中。
- 根据权利要求1所述的基于对称加密的秘钥丢失找回方法,其中,所述将所述密文和所述随机数发送给服务器,包括:获取用户输入的标识,所述标识是所述密文和所述随机数对应的唯一标记;将所述密文、所述随机数和所述标识一起发送给所述服务器。
- 根据权利要求4所述的基于对称加密的秘钥丢失找回方法,其中,所述将所述密文、所述随机数和所述标识一起发送给所述服务器前还包括:将所述密文的文件名称进行重命名,重命名名称为所述标识。
- 根据权利要求4所述的基于对称加密的秘钥丢失找回方法,其中,还包括授权查看数据:当需要将加密数据提供给授权方时,将所述秘钥和所述标识发送给所述授权方,通过授权方向所述服务器发送查看请求,所述查看请求中包含有所述标识,所述授权方接收到所述服务器返回的所述标识对应的密文后,通过所述秘钥对密文进行解密,生成明文查看所述数据。
- 根据权利要求1所述的基于对称加密的秘钥丢失找回方法,其中,所述将所述密文和所述随机数发送给服务器,包括:获取当前时间的时间戳,将所述密文、所述随机数和时间戳一起发送给所述服务器。
- 一种基于对称加密的秘钥丢失找回装置,包括:生成秘钥模块,设置为获取用户需要加密的数据和输入的密码,通过随机数发生器生成随机数,将所述密码和所述随机数通过预设的对称秘钥生成脚本生成对称加密的秘钥,并进行存储;生成密文模块,设置为采用所述秘钥对所述数据进行加密,生成密文,将所述密文和所述随机数发送给服务器;获取随机数模块,设置为获取用户触发的秘钥找回请求,向所述服务器发起秘钥找回请求,获取所述服务器返回的所述随机数;找回秘钥模块,设置为再次获取用户输入的密码,将所述密码和所述服务器返回的所述随机数通过所述对称秘钥生成脚本重新生成所述秘钥,并将所述秘钥进行存储,完成所述秘钥的找回。
- 根据权利要求8所述的基于对称加密的秘钥丢失找回装置,其中,所述生成秘钥模块,还设置为在存储介质中预设random()函数,通过调用所述random()函数生成所述随机数。
- 根据权利要求8所述的基于对称加密的秘钥丢失找回装置,其中,所述生成秘钥模块,包括:设置名称单元,设置为在存储介质中预设秘钥生成类型的对象,调用所述秘钥生成类型的对象,设置加密算法的名称;初始化单元,设置为初始化秘钥的长度;生成秘钥单元,设置为将所述密码和所述随机数设置为总随机数,生成一个对称加密的秘钥;保存秘钥单元,设置为通过对象序列化方式将所述秘钥保存在秘钥文件中。
- 根据权利要求8所述的基于对称加密的秘钥丢失找回装置,其中,所述生成密文模块,还设置为获取用户输入的标识,所述标识是所述密文和所述随机数对应的唯一标记;将所述密文、所述随机数和所述标识一起发送给所述服务器。
- 根据权利要求11所述的基于对称加密的秘钥丢失找回装置,其中,所述生成密文模块,还设置为将所述密文的文件名称进行重命名,重命名名称为所述标识。
- 根据权利要求11所述的基于对称加密的秘钥丢失找回装置,其中,还包括授权查看数据模块,设置为当需要将加密数据提供给授权方时,将所述秘 钥和所述标识发送给所述授权方,通过授权方向所述服务器发送查看请求,所述查看请求中包含有所述标识,所述授权方接收到所述服务器返回的所述标识对应的密文后,通过所述秘钥对密文进行解密,生成明文查看所述数据。
- 根据权利要求8所述的基于对称加密的秘钥丢失找回装置,其中,所述生成密文模块,还设置为获取当前时间的时间戳,将所述密文、所述随机数和时间戳一起发送给所述服务器。
- 一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行以下步骤:获取用户需要加密的数据和输入的密码,通过随机数发生器生成随机数,将所述密码和所述随机数通过预设的对称秘钥生成脚本生成对称加密的秘钥,并进行存储;采用所述秘钥对所述数据进行加密,生成密文,将所述密文和所述随机数发送给服务器;获取用户触发的秘钥找回请求,向所述服务器发起秘钥找回请求,获取所述服务器返回的所述随机数;再次获取用户输入的密码,将所述密码和所述服务器返回的所述随机数通过所述对称秘钥生成脚本重新生成所述秘钥,并将所述秘钥进行存储,完成所述秘钥的找回。
- 根据权利要求15所述的计算机设备,其中,所述将所述密码和所述随机数通过预设的对称秘钥生成脚本生成对称加密的秘钥,并进行存储时,使得所述处理器执行以下步骤:在存储介质中预设秘钥生成类型的对象,调用所述秘钥生成类型的对象,设置加密算法的名称;初始化秘钥的长度;将所述密码和所述随机数设置为总随机数,生成一个对称加密的秘钥;通过对象序列化方式将所述秘钥保存在秘钥文件中。
- 根据权利要求15所述的计算机设备,其中,所述将所述密文和所述随机数发送给服务器时,使得所述处理器执行以下步骤:获取用户输入的标识,所述标识是所述密文和所述随机数对应的唯一标记;将所述密文、所述随机数和所述标识一起发送给所述服务器。
- 一种存储有计算机可读指令的存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:获取用户需要加密的数据和输入的密码,通过随机数发生器生成随机数,将所述密码和所述随机数通过预设的对称秘钥生成脚本生成对称加密的秘钥,并进行存储;采用所述秘钥对所述数据进行加密,生成密文,将所述密文和所述随机数发送给服务器;获取用户触发的秘钥找回请求,向所述服务器发起秘钥找回请求,获取所述服务器返回的所述随机数;再次获取用户输入的密码,将所述密码和所述服务器返回的所述随机数通过所述对称秘钥生成脚本重新生成所述秘钥,并将所述秘钥进行存储,完成所述秘钥的找回。
- 根据权利要求18所述的存储介质,其中,所述将所述密码和所述随机数通过预设的对称秘钥生成脚本生成对称加密的秘钥,并进行存储时,使得一个或多个所述处理器执行以下步骤:在存储介质中预设秘钥生成类型的对象,调用所述秘钥生成类型的对象,设置加密算法的名称;初始化秘钥的长度;将所述密码和所述随机数设置为总随机数,生成一个对称加密的秘钥;通过对象序列化方式将所述秘钥保存在秘钥文件中。
- 根据权利要求18所述的存储介质,其中,所述将所述密文和所述随机数发送给服务器时,使得一个或多个所述处理器执行以下步骤:获取用户输入的标识,所述标识是所述密文和所述随机数对应的唯一标记;将所述密文、所述随机数和所述标识一起发送给所述服务器。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811381039.7A CN109617677A (zh) | 2018-11-20 | 2018-11-20 | 基于对称加密的秘钥丢失找回方法及相关设备 |
| CN201811381039.7 | 2018-11-20 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020103285A1 true WO2020103285A1 (zh) | 2020-05-28 |
Family
ID=66004653
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/124181 Ceased WO2020103285A1 (zh) | 2018-11-20 | 2018-12-27 | 基于对称加密的秘钥丢失找回方法及相关设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109617677A (zh) |
| WO (1) | WO2020103285A1 (zh) |
Families Citing this family (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110430042B (zh) * | 2019-06-28 | 2022-11-22 | 中国人民解放军战略支援部队信息工程大学 | 一种在异构冗余系统中存储秘钥的装置及方法 |
| CN110427779A (zh) * | 2019-08-13 | 2019-11-08 | 威富通科技有限公司 | 一种数据库表字段的加、解密方法及数据服务器 |
| CN112632586A (zh) * | 2020-12-30 | 2021-04-09 | 浪潮电子信息产业股份有限公司 | Bios硬盘密码找回方法、装置、设备及可读存储介质 |
| CN113079002B (zh) * | 2021-03-26 | 2022-04-05 | 北京深思数盾科技股份有限公司 | 数据加密方法、解密方法、密钥管理方法、介质和设备 |
| CN113315629B (zh) * | 2021-04-28 | 2023-07-11 | 四川万信数字科技有限公司 | 用于商业密码的云端存储和验证系统 |
| CN113364760A (zh) * | 2021-06-01 | 2021-09-07 | 平安科技(深圳)有限公司 | 一种数据加密处理方法、装置、计算机设备及存储介质 |
| CN113609497B (zh) * | 2021-06-30 | 2022-09-23 | 荣耀终端有限公司 | 一种数据保护方法及装置 |
| CN113517979B (zh) * | 2021-09-10 | 2021-12-31 | 北京智科车联科技有限公司 | 加密通信方法、装置、车载终端及通信平台 |
| CN114679312B (zh) * | 2022-03-22 | 2023-05-05 | 通号智慧城市研究设计院有限公司 | 加密方法、电子设备和计算机可读存储介质 |
| CN115734215B (zh) * | 2022-09-01 | 2025-08-19 | 中国联合网络通信集团有限公司 | 密钥找回方法、服务器及识别卡 |
| CN116684092B (zh) * | 2023-07-28 | 2023-10-13 | 新乡学院 | 一种基于网络的密码存储、找回方法及密码找回装置 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101667913A (zh) * | 2009-09-18 | 2010-03-10 | 重庆邮电大学 | 基于对称加密的认证加密方法及加密系统 |
| CN106548345A (zh) * | 2016-12-07 | 2017-03-29 | 北京信任度科技有限公司 | 基于密钥分割实现区块链私钥保护的方法及系统 |
| CN108418680A (zh) * | 2017-09-05 | 2018-08-17 | 矩阵元技术(深圳)有限公司 | 一种基于多方安全计算技术的区块链密钥恢复方法、介质 |
| CN108629027A (zh) * | 2018-05-09 | 2018-10-09 | 深圳壹账通智能科技有限公司 | 区块链上用户数据库重建方法、装置、设备及介质 |
| CN108833093A (zh) * | 2018-06-14 | 2018-11-16 | 百度在线网络技术(北京)有限公司 | 账户密钥的确定方法、装置、设备及存储介质 |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101593196B (zh) * | 2008-05-30 | 2013-09-25 | 日电(中国)有限公司 | 用于快速密文检索的方法、装置和系统 |
| CN101340279B (zh) * | 2008-07-09 | 2011-02-02 | 深圳市金蝶友商电子商务服务有限公司 | 数据加密及解密方法、系统及设备 |
| CN103684766B (zh) * | 2012-08-30 | 2017-03-08 | 卓望数码技术(深圳)有限公司 | 一种终端用户的私钥保护方法和系统 |
| JP2014068140A (ja) * | 2012-09-25 | 2014-04-17 | Sony Corp | 情報処理装置、情報処理方法及びプログラム |
| CN104348786B (zh) * | 2013-07-29 | 2018-09-04 | 腾讯科技(深圳)有限公司 | 密码找回方法、装置和系统 |
-
2018
- 2018-11-20 CN CN201811381039.7A patent/CN109617677A/zh active Pending
- 2018-12-27 WO PCT/CN2018/124181 patent/WO2020103285A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101667913A (zh) * | 2009-09-18 | 2010-03-10 | 重庆邮电大学 | 基于对称加密的认证加密方法及加密系统 |
| CN106548345A (zh) * | 2016-12-07 | 2017-03-29 | 北京信任度科技有限公司 | 基于密钥分割实现区块链私钥保护的方法及系统 |
| CN108418680A (zh) * | 2017-09-05 | 2018-08-17 | 矩阵元技术(深圳)有限公司 | 一种基于多方安全计算技术的区块链密钥恢复方法、介质 |
| CN108629027A (zh) * | 2018-05-09 | 2018-10-09 | 深圳壹账通智能科技有限公司 | 区块链上用户数据库重建方法、装置、设备及介质 |
| CN108833093A (zh) * | 2018-06-14 | 2018-11-16 | 百度在线网络技术(北京)有限公司 | 账户密钥的确定方法、装置、设备及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109617677A (zh) | 2019-04-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2020103285A1 (zh) | 基于对称加密的秘钥丢失找回方法及相关设备 | |
| CN110224814B (zh) | 一种区块链数据共享方法及装置 | |
| CN106790250B (zh) | 数据处理、加密、完整性校验方法及身份鉴别方法及系统 | |
| US8892866B2 (en) | Secure cloud storage and synchronization systems and methods | |
| TWI489847B (zh) | 資料加密方法、資料驗證方法及電子裝置 | |
| US20110145576A1 (en) | Secure method of data transmission and encryption and decryption system allowing such transmission | |
| US20090022319A1 (en) | Method and apparatus for securing data and communication | |
| CN109194461B (zh) | 基于双密钥流密码的单向链表顺序加密解密方法 | |
| Bhagoliwal et al. | Securing mobile data using cryptography | |
| AU2017308060B2 (en) | Devices and methods for enabling portable secure communication using random cipher pad cryptography | |
| CN111586076A (zh) | 基于混合密码的遥控遥测信息防篡改加解密方法和系统 | |
| WO2021114850A1 (zh) | 消息的加解密、读写方法、装置、计算机设备和存储介质 | |
| CN103152362A (zh) | 基于云计算的大数据文件加密传输方法 | |
| Shukla et al. | Sampurna suraksha: unconditionally secure and authenticated one time pad cryptosystem | |
| US20240187477A1 (en) | Method and system for secure file sharing based on domestic cryptographic algorithm | |
| CN119210719A (zh) | 加密方法、解密方法、分词单向加密方法、设备和介质 | |
| CN111432403A (zh) | 基于区块链的数据审计方法及装置 | |
| US8195959B2 (en) | Encrypting a credential store with a lockbox | |
| Sujithra et al. | ID based adaptive-key signcryption for data security in cloud environment | |
| US20180287796A1 (en) | Security key hopping | |
| CN118540049B (zh) | 基于商用密码算法的高效保序加解密方法和计算机设备 | |
| US10050943B2 (en) | Widely distributed parameterization | |
| CN117914593A (zh) | 数据加密方法、数据解密方法、装置、设备和可读介质 | |
| US12160509B2 (en) | Cryptographic systems and methods for maintenance of pools of random numbers | |
| CN115412236A (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: 18940963 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: 18940963 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 09/09/2021) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18940963 Country of ref document: EP Kind code of ref document: A1 |

