# US 2019/0171843 A1 · Application-level in-place encryption

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0171843 A1
- Document ID: US20190171843A1
- Status: Published application
- Kind: A1
- Application number: 15/830,748
- Filed: 2017-12-04
- Published: 2019-06-06
- Earliest claimed: 2017-12-04
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Xun Sun; Yu Wu; Xiaoxiao (Jerome) Gu; Yukching Leung
- Web page: https://patentgrep.com/patent/US20190171843A1

## CPC

- G06F 21/6245: {Protecting personal data, e.g. for financial or medical purposes}
- G06F 21/6227: {where protection concerns the structure of data, e.g. records, types, queries}
- G09C 1/00: Apparatus or methods whereby a given sequence of signs, e.g. an intelligible text, is transformed into an unintelligible sequence of signs by transposing the signs or groups of signs or by replacing them by others according to a predetermined system (cryptographic typewriters G09C3/00)
- H04L 9/0618: {Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation}
- H04L 9/088: {Usage controlling of secret information, e.g. techniques for restricting cryptographic keys to pre-authorized uses, different access levels, validity of crypto-period, different key- or password length, or different strong and weak cryptographic algorithms (network architectures or network communication protocols for using time-dependent keys in a packet data network H04L63/068)}
- H04L 9/0631: {Substitution permutation network [SPN], i.e. cipher composed of a number of stages or rounds each involving linear and nonlinear transformations, e.g. AES algorithms}
- H04L 9/0861: {Generation of secret information including derivation or calculation of cryptographic keys or passwords}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G09C: CIPHERING OR DECIPHERING APPARATUS FOR CRYPTOGRAPHIC OR OTHER PURPOSES INVOLVING THE NEED FOR SECRECY
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method includes obtaining first text information in a first format, converting the first text information to an offset value from a base time in a second format, generating an encryption key, encrypting the offset value with the encryption key to produce an encrypted offset value in the second format, converting the encrypted offset value to second text information in the first format, and outputting the second text information as encrypted text corresponding to the first text information.

## Claims

### Claim 1

A computer-implemented method comprising:
obtaining first text information in a first format;
converting the first text information to an offset value from a base time in a second format;
generating an encryption key;
encrypting the offset value with the encryption key to produce an encrypted offset value in the second format;
converting the encrypted offset value to second text information in the first format; and
outputting the second text information as encrypted text corresponding to the first text information.

### Claim 2 (depends on 1)

The method of claim 1, further comprising storing metadata associated with the first text information including a key identifier configured to identify the encryption key.

### Claim 3 (depends on 2)

The method of claim 2, further comprising decrypting the second text information in the first format based on the metadata, wherein the decrypting further comprises:
converting the second text information to an offset value from a base time in the second format;
decrypting the offset value with the encryption key to produce a decrypted offset value in the second format; and
converting the decrypted offset value to the first text information in the first format.

### Claim 4 (depends on 1)

The method of claim 1, wherein the first text information includes date and time information.

### Claim 5 (depends on 1)

The method of claim 1, wherein the encryption key is a symmetric encryption key.

### Claim 6 (depends on 1)

The method of claim 1, wherein the encrypting step is performed using format-preserving encryption and an Advanced Encryption Standard (AES) encryption key.

### Claim 7 (depends on 1)

The method of claim 1, wherein the first text information and the second text information are of the same data type.

### Claim 8

A system comprising:
a processor; and
a memory in communication with the processor, the memory storing program instructions, the processor operative with the program instructions to perform the operations of:
obtaining first text information of a first data type;
converting the first text information to an epoch time value;
generating an encryption key;
encrypting the epoch time value with the encryption key to produce an encrypted epoch time value;
converting the encrypted epoch time value to second text information having the same data type as the first text information; and
outputting the second text information as encrypted text corresponding to the first text information.

### Claim 9 (depends on 8)

The system of claim 8, further comprising storing metadata associated with the first text information including a key identifier configured to identify the encryption key.

### Claim 10 (depends on 9)

The system of claim 9, further comprising decrypting the second text information based on the metadata, wherein the decrypting further comprises:
converting the second text information to an epoch time value;
decrypting the epoch time value with the encryption key to produce a decrypted epoch time value; and
converting the decrypted epoch time value to the first text information of the first data type.

### Claim 11 (depends on 8)

The system of claim 8, wherein the same key is used for both the encrypting and decrypting.

### Claim 12 (depends on 8)

The system of claim 8, wherein the first text information includes date and time information.

### Claim 13 (depends on 8)

The system of claim 8, wherein the encrypting step is performed using format-preserving encryption and an Advanced Encryption Standard (AES) encryption key.

### Claim 14

A non-transitory computer readable medium having stored therein instructions that when executed cause a computer to perform a method comprising:
obtaining first text information;
converting the first text information to an offset value from a base time;
generating an encryption key;
encrypting the offset value with the encryption key to produce an encrypted offset value;
converting the encrypted offset value to second text information; and
outputting the second text information as encrypted text corresponding to the first text information.

### Claim 15 (depends on 14)

The non-transitory computer-readable medium of claim 14, further comprising storing metadata associated with the first text information including a key identifier configured to identify the encryption key.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, further comprising decrypting the second text information based on the metadata, wherein the decrypting further comprises:
converting the second text information to an offset value from a base time;
decrypting the offset value with the encryption key to produce a decrypted offset value; and
converting the decrypted offset value to the first text information.

### Claim 17 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein the same key is used for both the encrypting and decrypting.

### Claim 18 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein the first text information includes date and time information.

### Claim 19 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein the encrypting step is performed using format-preserving encryption and an Advanced Encryption Standard (AES) encryption key.

### Claim 20 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein the first text information and the second text information are of the same format and length.
