FPE/FF1
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)
UNICODE to support various languages. The maximum supported cardinality size is 65535.
The steps to encrypt/decrypt data using FPE/FF1 algorithm is provided in the FF1EncryptionDecryptionSample.java
sample. The sample is available on Github.
Important notes
The bulk operation is supported for all the variants of FPE/FF1.
FPE/FF1 algorithms are supported only in the local mode.
FPE/FF1 requires minimum two characters to perform encryption. The maximum data length can be 128000 characters.
On performing crypto operations with FPE/FF1, the characters in the input data other than those specified by the cardinality, remains preserved and do not get encrypted.
FPE/FF1 algorithms support FPE formats.
If tweak algorithm is None, the tweak data is optional. If tweak data is provided, the value must be in HEX encoded string format.