FPE/FF3-1
This algorithm supports following cardinalities for different types of data.
CARD10 for digits in range 0 - 9
CARD26 for lower case alphabets (a-z)
CARD62 for digits (0 - 9), lower case alphabets (a - z), and upper case alphabets (A - Z)
ASCII to support 128 characters
UNICODE to support various languages. The maximum supported cardinality size is 65535.
The steps to encrypt/decrypt data using FPE/FF3-1 algorithm is provided in the FF1EncryptionDecryptionSample.java
sample. The sample is available on Github.
Important notes
Only CARD10 is supported in both local and remote mode. Other cardinalities are supported in the local mode only.
The bulk operation is supported for all the variants of FPE/FF3-1.
On performing crypto operations with FPE/FF3-1, the characters in the input data other than those specified by the cardinality, remains preserved and do not get encrypted.
FPE/FF3-1 requires minimum two characters to perform encryption. The maximum data length can be 128000 characters.
FPE/FF3-1 algorithms support FPE formats.
In FPE/FF3-1, if tweak algorithm is None, the tweak data length should be 14 characters HEX encoded string.
For tweak algorithms SHA1 and SHA256, the tweak data length should be ≤ 256 characters.