FPE/FF3
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 algorithm is provided in the FF1EncryptionDecryptionSample.java
sample. The sample is available on Github.
Important notes
FPE/FF3 algorithms are supported only in the local mode.
The bulk operation is supported for all the variants of FPE/FF3.
On performing crypto operations with FPE/FF3, the characters in the input data other than those specified by the cardinality, remains preserved and do not get encrypted.
FPE/FF3 requires minimum two characters to perform encryption. The maximum data length can be 128000 characters.
FPE/FF3 algorithms support FPE formats.
In FPE/FF3, if tweak algorithm is None, the tweak data length should be 16 characters HEX encoded string.
For tweak algorithms SHA1 and SHA256, the tweak data length should be ≤ 256 characters.