IP Library Granted Patent US 12,341,886
Granted Patent B2
US 12,341,886 · App. 17/622,610 · Granted Jun 24, 2025

Data encryption and decryption method, device, storage medium and encrypted file

Inventors: Lin Chen (Shanghai, CN); Bin Xu (Shanghai, CN); Sen Yang (Shanghai, CN)
Assignee: CHINA UNIONPAY CO., LTD.
H04L9/14G06F21/602H04L9/0618H04L9/0822H04L9/0825H04L9/3247
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,341,886
App. No.
17/622,610
Granted
Jun 24, 2025
Kind
B2
Abstract

The application provides a data encryption and decryption method, device, storage medium, and encrypted file, and relates to the technical field of data processing. The method for data encryption includes: obtaining a first key, and performing an obfuscation operation on the first key and data to be encrypted to obtain obfuscation operation result data; obtaining a second key, and obtaining a first signature of the obfuscation operation result data according to the second key; obtaining a third key, and encrypting the first key, the data to be encrypted and the first signature using the third key to obtain a target ciphertext; obtaining a fourth key, and obtaining a second signature of the target ciphertext according to the fourth key; generating an encrypted file including the target ciphertext and the second signature. With the technical solutions of the application, security of data protection can be improved.

Claims (37)

1. A method for data encryption, comprising:

obtaining a first key, and performing an obfuscation operation on the first key and data to be encrypted to obtain obfuscation operation result data, wherein an obfuscation factor in the obfuscation operation includes the first key;

obtaining a second key, and obtaining a first signature of the obfuscation operation result data according to the second key;

obtaining a third key, and encrypting the first key, the data to be encrypted and the first signature using the third key to obtain a target ciphertext;

obtaining a fourth key, and obtaining a second signature of the target ciphertext according to the fourth key;

generating an encrypted file including the target ciphertext and the second signature,

wherein the first key is a public key, and the fourth key is a private key corresponding to the first key.

2. The method according to claim 1 , further comprising:

receiving the third key generated and sent by a decryption device.

3. The method according to claim 1 , wherein the first key is generated by an encryption device.

4. The method according to claim 1 , wherein the third key is a public key or a symmetric key.

5. The method according to claim 1 , wherein:

the second key and the fourth key are keys generated by an encryption device;

the second key is a private keys corresponding to the first key.

6. The method according to claim 1 , wherein the second key is the same as the fourth key.

7. A method for data decryption, comprising:

receiving an encrypted file including a target ciphertext and a second signature, wherein the second signature is a signature of the target ciphertext and obtained by an encryption device according to a fourth key;

decrypting the target ciphertext using a pre-stored fifth key paired with a third key to obtain a first key, data to be encrypted and a first signature;

verifying the target ciphertext and the second signature using a sixth key paired with the fourth key;

performing an obfuscation operation the same as in the encryption device on the first key and the data to be encrypted obtained via decrypting to obtain obfuscation operation result data, and verifying the obtained obfuscation operation result data and first signature using a seventh key paired with a second key, wherein the first signature is a signature of the obfuscation operation result data and obtained by the encryption device according to the second key, wherein an obfuscation factor in the obfuscation operation includes the first key,

wherein the first key is a public key, the fourth key is a private key corresponding to the first key.

8. The method according to claim 7 , further comprising:

determining that the encrypted file is not tampered with, under a condition that the verification of the target ciphertext and the second signature is successful and the verification of the obtained obfuscation operation result data and first signature is successful.

9. The method according to claim 7 , wherein before the receiving an encrypted file including a target ciphertext and a second signature, the method further comprises:

generating and sending the third key to the encryption device.

10. The method according to claim 7 , wherein the first key is generated by the encryption device.

11. The method according to claim 7 , wherein the third key is a public key or a symmetric key.

12. The method according to claim 7 , wherein:

the second key and the fourth key are keys generated by the encryption device;

the second key is a private key corresponding to the first key.

13. The method according to claim 7 , wherein:

the sixth key is the first key obtained by decrypting the target ciphertext;

in a case the second key is a private key corresponding to the first key, the seventh key is the first key obtained by decrypting the target ciphertext.

14. An encryption device, comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the method for data encryption of claim 1 .

15. A decryption device, comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the method for data decryption of claim 7 .

16. A non-transitory computer-readable storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, implements the method for data encryption of claim 1 .

17. A non-transitory computer-readable storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, implements the method for data decryption of claim 7 .

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 21, 2022
From: CHEN, LIN; XU, BIN; YANG, SEN
To: CHINA UNIONPAY CO., LTD.
Reel/Frame 062168/0416 →
Priority Claims (1)
CN 201911176393.0 · Nov 26, 2019 · national
Continuity (1)
Related Publication 20220360441A1 · Nov 10, 2022
References Cited (23)
US 5689565A · Spies · 1997 [cited by examiner]
US 6233565B1 · Lewis · 2001 [cited by examiner]
US 20020062438A1 · Asay et al. · 2002 [cited by applicant]
US 20020133707A1 · Newcombe · 2002 [cited by examiner]
US 20030012374A1 · Wu et al. · 2003 [cited by applicant]
US 20050251865A1 · Mont · 2005 [cited by examiner]
US 20070271469A1 · Kim et al. · 2007 [cited by applicant]
US 20080120504A1 · Kirkup · 2008 [cited by examiner]
US 20140372748A1 · Dixon et al. · 2014 [cited by applicant]
US 20150033016A1 · Thornton · 2015 [cited by examiner]
US 20160373418A1 · Ståhl · 2016 [cited by examiner]
EP 1378092 · 2008 [cited by applicant]
KR 20040092031A · 2004 [cited by examiner]
TW 201500955 · 2015 [cited by applicant]
European Patent Office Action dated Jun. 30, 2022 issued for European Patent Application No. 20892055.3. [cited by applicant]
Office Action dated Mar. 21, 2022 issued for Taiwanese Patent Application No. 109126454. [cited by applicant]
Gupta, et al., “Role of Multiple Encryption in Secure Electronic Transaction”, International Journal of Network Security & Its Applications (IJNSA), vol. 3, No. 6, Nov. 2011. [cited by applicant]
First Office Action issued on Feb. 9, 2021 for Chinese patent application No. 201911176393.0, the first Office Action issued on the Notice of Grant issued on Jun. 30, 2021. [cited by applicant]
Notice of Grant issued on Jun. 30, 2021 for Chinese patent application No. 201911176393.0. [cited by applicant]
First Office Action issued on Apr. 30, 2021 for Office Action for Taiwanese patent application No. 109126454. [cited by applicant]
International Search Report and Written Opinion issued on Jan. 4, 2021 for International PCT application No. PCT/CN2020/118318. [cited by applicant]
Chen et al., “Secure Obfuscation for Encrypted Ring Signatures”, Acta Scientiarum Naturalium Universitatis Sunyatseni, vol. 53, No. 1, Jan. 2014. [cited by applicant]
vol. 2007, No. 3 of China's Excellent Master's Thesis Full-text Database Information Science and Technology Series, dated Sep. 15, 2007. [cited by applicant]