Format-Preserving Encryption for Base64 Data

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Format-preserving encryption methods, such as VFPE, face challenges when applied to Base64 encoded data, particularly in maintaining the same size and character set as the original plaintext, and ensuring security without increasing storage or processing overhead, especially when reusing keys/IV combinations.

Innovation Solution

The method involves encoding raw binary data into Base64 format, applying format-preserving encryption using VFPE with a unique key derived from a static key and message-specific identifying information, and employing length-preservation or length-obfuscation techniques to maintain the Base64 format and security.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Shape

If format-preserving encryption is applied to Base64 encoded data, then the data size and character set are preserved, but security is compromised if key/IV combination is reused

Engineering Contradiction:
Improvedata format preservationVSAvoidencryption security
Core Design Contradiction:
ShapeVSReliability

Solution Approach 1:

The patent applies dynamics by making the encryption key dynamic rather than static. Each message receives a unique key derived from the static key combined with message-specific identifying information (such as message timestamp, sequence number, or content hash). This ensures that even though the encryption algorithm and data format remain consistent, the key changes with each message, preventing security compromises from key reuse while maintaining format preservation.

Inventive Principle:
Principle #15Dynamics

2Reliability

If multiple rounds of encryption are performed, then encryption strength is improved, but processing overhead increases significantly

Engineering Contradiction:
Improveencryption strengthVSAvoidprocessing speed
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent changes the parameter of encryption rounds from multiple rounds to a single round of format-preserving encryption. By using VFPE (Visa FPE) which is designed as a stream cipher rather than a block cipher, the system achieves strong encryption with minimal processing overhead. The unique key derivation mechanism compensates for the reduced number of encryption rounds, maintaining security without the performance penalty of multiple encryption passes.

Inventive Principle:
Principle #35Parameter changes

3Reliability

If database schema is changed to store encrypted data, then data security is improved, but storage space increases

Engineering Contradiction:
Improvedata securityVSAvoidstorage space
Core Design Contradiction:
ReliabilityVSVolume of stationary object

Solution Approach 1:

The patent changes the parameter of encryption approach from traditional block encryption to format-preserving encryption. FPE encrypts data in place without changing the size or character set of the data, so a 9-byte SSN remains a 9-byte encrypted value. This eliminates the need to increase storage field size from 9 to 16 bytes, maintaining compact storage while achieving strong encryption through the unique key derivation mechanism.

Inventive Principle:
Principle #35Parameter changes

4Adaptability or versatility

If Base64 encoding is applied to binary data, then data compatibility is improved, but encryption security is compromised since original data can be recovered

Engineering Contradiction:
Improvedata compatibilityVSAvoidencryption security
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The patent applies preliminary action by performing Base64 encoding on the binary data before encryption. This ensures that the data is in the correct format for FPE processing. The combination of Base64 encoding followed by FPE with unique key derivation provides both compatibility (Base64 text format) and security (FPE encryption with per-message keys), preventing the vulnerability where original data could be recovered from Base64-encoded ciphertext.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS10015008B2Format-preserving encryption of Base64 encoded data
Publication Date: 2018.07.03 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US10015008B2 patent drawing
  • US10015008B2 patent drawing
  • US10015008B2 patent drawing

AI summary

A computer-implemented method for encrypting binary data may include encoding raw binary data in Base64 format to generate Base64 binary data. The Base64 binary data may be encrypted, by a computer processor, using format-preserving encryption to generate Base64 ciphertext. The Base64 ciphertext may be validatable by a Base64 validator.