IP Library › Granted Patent US 12,164,665
Granted Patent B2
US 12,164,665 · App. 17/284,829 · Granted Dec 10, 2024

Method and apparatus for encrypting selected portion of file

Inventor: Khee Seng Chua (Melbourne, AU)
G06F21/6245G06F21/31G06F21/602G06F21/84
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,164,665
App. No.
17/284,829
Granted
Dec 10, 2024
Kind
B2
Abstract

Disclosed is a method and a device for processing a file. According to an embodiment, the method comprises selecting a portion of the file to be encrypted; encrypting the selected portion of the file as encrypted data; and amending the file by replacing the selected portion with predefined data and appending the encrypted data at an end of the file.

Claims (38)

1. A method for selectively encrypting a portion of a file, comprising

selecting portions of the file to be encrypted;

encrypting the selected portions of the file as encrypted data; and

amending the file by replacing the selected portions with predefined data and appending the encrypted data as a single portion at an end of the file, wherein the encrypted data is hidden when the file is displayed;

checking if an end-of-file marker is included at the end of the file;

wherein, if the end-of-file marker is included, the encrypted data is appended after the end-of-file marker; and

wherein, if the end-of-file marker is not included, the end-of-file marker is created and the encrypted data is appended after the created end-of-file marker.

2. The method of claim 1 , wherein the portions of file are automatically selected according to a predefined rule or manually selected by a user.

3. The method of claim 1 , wherein if the encrypted data is decrypted successfully, the file is restored and displayed as it was before encryption.

4. The method of claim 1 , wherein if the encrypted data is not decrypted or not decrypted successfully, the file is displayed as including the predefined data replacing the selected portion.

5. The method of claim 1 , wherein the file is an image file or a document file.

6. The method of claim 1 , wherein a plurality of portions of the file are selected, and each of the portions is encrypted and replaced separately, so that each of the portions is configured to be decrypted separately.

7. The method of claim 1 , wherein the amended file is configured to be selectively transmitted as a whole from a start of the amended file to an end of the amended file or from a start of the amended file to where the encrypted data appended at the end of the file.

8. A device for selectively encrypting a portion of a file, comprising

a processor; and

a memory for storing computer-readable instructions,

wherein, when the instructions are executed by the processor, the processor is configured for

selecting portions of the file to be encrypted,

encrypting the selected portions of the file as encrypted data, and

amending the file by replacing the selected portions with predefined data and appending the encrypted data as a single portion at an end of the file, wherein the encrypted data is hidden when the file is displayed;

checking if an end-of-file marker is included at the end of the file;

wherein, if the end-of-file marker is included, the encrypted data is appended after the end-of-file marker; and

wherein, if the end-of-file marker is not included, the end-of-file marker is created and the encrypted data is appended after the created end-of-file marker.

9. The device of claim 8 , wherein the portions of file are automatically selected according to a predefined rule or manually selected by a user.

10. The device of claim 8 , wherein a plurality of portions of the file are selected, and each of the portions is encrypted and replaced separately, so that each of the portions is configured to be decrypted separately.

11. The device of claim 8 , wherein the amended file is configured to be selectively transmitted as a whole from a start of the amended file to an end of the amended file or from a start of the amended file to where the encrypted data appended at the end of the file.

12. The device of claim 8 , wherein if the encrypted data is not decrypted or not decrypted successfully, the file is displayed as including the predefined data replacing the selected portion.

13. A computer-readable storing medium storing computer-readable instructions configured for selectively encrypting a portion of a file, wherein, when the instructions are executed by a processor, the processor is configured for

selecting portions of the file to be encrypted,

encrypting the selected portions of the file as encrypted data, and

amending the file by replacing the selected portions with predefined data and appending the encrypted data as a single portion at an end of the file, wherein the encrypted data is hidden when the file is displayed;

checking if an end-of-file marker is included at the end of the file;

wherein, if the end-of-file marker is included, the encrypted data is appended after the end-of-file marker; and

wherein, if the end-of-file marker is not included, the end-of-file marker is created and the encrypted data is appended after the created end-of-file marker.

14. The computer-readable storing medium of claim 13 , wherein a plurality of portions of the file are selected, and each of the portions is encrypted and replaced separately, so that each of the portions is configured to be decrypted separately.

15. The computer-readable storing medium of claim 13 , wherein the amended file is configured to be selectively transmitted as a whole from a start of the amended file to an end of the amended file or from a start of the amended file to where the encrypted data appended at the end of the file.

16. The computer-readable storing medium of claim 13 , wherein if the encrypted data is not decrypted or not decrypted successfully, the file is displayed as including the predefined data replacing the selected portion.

17. The method of claim 1 , further comprising indicating by a header, the encrypted data at the end of the file.

Continuity (2)
Provisional Application 62745368 · Oct 14, 2018
Related Publication 20210390205A1 · Dec 16, 2021