IP Library Granted Patent US 12,259,996
Granted Patent B2
US 12,259,996 · App. 17/552,871 · Granted Mar 25, 2025

Method of protecting data and computer device

Inventors: Liang-Te Chiu (New Taipei, TW); Wun-Cing Lai (New Taipei, TW)
Assignee: HON HAI PRECISION INDUSTRY CO., LTD.
G06F21/6227G06F21/602G06F21/64H04L9/0825H04L9/50
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,259,996
App. No.
17/552,871
Granted
Mar 25, 2025
Kind
B2
Abstract

A method of protecting data applied in a computer device is provided. A designated file is encrypted by using a symmetric key to obtain an encrypted file. The symmetric key is encrypted by using a first public key of a first pair of keys and a first ciphertext is obtained. Information related to the designated file is obtained, and the related information of the designated file is uploaded to a blockchain. When decrypting the encrypted file, the related information of the designated file is downloaded from the blockchain to obtain the related information of the designated file. The symmetric key is obtained by decrypting a first ciphertext of the related information by using a first private key of the first pair of keys, and a decrypted file is obtained by decrypting the encrypted file by using the symmetric key.

Claims (46)

1. A method of protecting data comprising:

encrypting a designated file by using a symmetric key and obtaining an encrypted file;

encrypting the symmetric key by using a first public key of a first pair of keys and obtaining a first ciphertext, and the first pair of keys comprising a first private key;

obtaining related information of the designated file, and uploading the related information of the designated file to a blockchain, and the related information of the designated file comprising the first ciphertext;

after obtaining the encrypted file, storing the encrypted file in a designated location, wherein the related information of the designated file comprises the information of the designated location; and

when obtaining the designated location comprised in the information of the designated location from the blockchain, obtaining the encrypted file based on the information of the designated location;

when decrypting the encrypted file, downloading the related information of the designated file from the blockchain and obtaining the related information of the designated file;

obtaining the symmetric key by decrypting the first ciphertext comprised in the related information by using the first private key; and

obtaining a decrypted file by decrypting the encrypted file by using the symmetric key;

obtaining a second ciphertext by encrypting the symmetric key by using a second public key of a second pair of keys, and the second pair of keys comprising a second private key;

updating the related information of the designated file by adding the second ciphertext to the related information of the designated file, and obtaining an updated related information of the designated file;

uploading the updated related information of the designated file to the blockchain;

when decrypting the encrypted file, downloading the updated related information of the designated file from the blockchain, and obtaining the second ciphertext comprised in the updated related information;

obtaining the symmetric key by decrypting the second ciphertext by using the second private key; and

obtaining the decrypted file by decrypting the encrypted file by using the symmetric key.

2. The method of protecting data according to claim 1 , wherein the information of the designated location is a path or URL for obtaining the encrypted file from the designated location.

3. A method of protecting data comprising:

obtaining an encrypted file by encrypting a designated file by using a symmetric key;

generating N pairs of keys in response to user's input, and each pair of the N pairs of keys comprising a public key and a private key, thereby obtaining N public keys and N private keys corresponding to the N public keys;

obtaining N ciphertexts by encrypting the symmetric key using each public key of the N public keys, and each ciphertext corresponding to each public key;

obtaining related information of the designated file and uploading the related information of the designated file to the blockchain, and the related information of the designated file comprising the N ciphertexts;

after obtaining the encrypted file, storing the encrypted file in a designated location, wherein the related information of the designated file comprises the information of the designated location; and

when obtaining the designated location comprised in the information of the designated location from the blockchain, obtaining the encrypted file based on the information of the designated location;

when decrypting the encrypted file, downloading the related information of the designated file from the blockchain, and obtaining the N ciphertexts comprised in the related information;

obtaining the symmetric key by decrypting a target ciphertext using at least one pair of keys in the N private keys, wherein the target ciphertext is one of the N ciphertexts of the public key corresponding to the at least one private key; and

obtaining a decrypted file by decrypting the encrypted file using the symmetric key.

4. The method of protecting data according to claim 3 , wherein the information of the designated location is a path or URL for obtaining the encrypted file from the designated location.

5. A computer device comprising:

a storage device;

at least one processor; and

the storage device storing one or more programs, which when executed by the at least one processor, cause the at least one processor to:

encrypt a designated file by using a symmetric key and obtain an encrypted file;

encrypt the symmetric key by using a first public key of a first pair of keys and obtaining a first ciphertext, wherein the first pair of keys comprises a first private key;

obtain related information of the designated file, and upload the related information of the designated file to a blockchain, wherein the related information of the designated file comprises the first ciphertext;

after obtaining the encrypted file, store the encrypted file in a designated location, wherein the related information of the designated file comprises the information of the designated location; and

when obtaining the designated location comprised in the information of the designated location from the blockchain, obtain the encrypted file based on the information of the designated location;

when decrypting the encrypted file, download the related information of the designated file from the blockchain and obtain the related information of the designated file;

obtain the symmetric key by decrypting the first ciphertext comprised in the related information by using the first private key; and

obtain a decrypted file by decrypting the encrypted file by using the symmetric key;

obtain a second ciphertext by encrypting the symmetric key by using a second public key of a second pair of keys, wherein the second pair of keys comprises a second private key;

update the related information of the designated file by adding the second ciphertext to the related information of the designated file, and obtain an updated related information of the designated file;

upload the updated related information of the designated file to the blockchain;

when decrypting the encrypted file, download the updated related information of the designated file from the blockchain, and obtain the second ciphertext comprised in the updated related information;

obtain the symmetric key by decrypting the second ciphertext by using the second private key; and

obtain the decrypted file by decrypting the encrypted file by using the symmetric key.

6. The computer device according to claim 5 , wherein the information of the designated location is a path or URL for obtaining the encrypted file from the designated location.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 16, 2021
From: CHIU, LIANG-TE; LAI, WUN-CING
To: HON HAI PRECISION INDUSTRY CO., LTD.
Reel/Frame 058408/0551 →
Priority Claims (1)
CN 202011531688.8 · Dec 22, 2020 · national
Continuity (1)
Related Publication 20220198051A1 · Jun 23, 2022
References Cited (12)
US 10979410B1 · Byrd · 2021 [cited by examiner]
US 11265169B1 · Rowe · 2022 [cited by examiner]
US 11528127B2 · Wright · 2022 [cited by examiner]
US 20190163912A1 · Kumar · 2019 [cited by examiner]
US 20190356529A1 · Gulati · 2019 [cited by examiner]
US 20200162238A1 · Yoon · 2020 [cited by examiner]
US 20220019425A1 · Yang · 2022 [cited by examiner]
CN 108881262A · 2018 [cited by applicant]
CN 110264354 · 2019 [cited by applicant]
TW 202023235 · 2020 [cited by applicant]
WO 2019127265A1 · 2019 [cited by applicant]
http://frogledd887.blogspot.com/2017/04/blog-post.html, Liou's: Digital Signature, Digital Envelope, Digital Certificate, Apr. 23, 2017. [cited by applicant]
Cited By (3)
US 12,462,253 US 12,621,145 US 12,626,254