FPE/FF1v2
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/FF1v2 algorithm is provided in the FF1EncryptionDecryptionSample.java
sample. The sample is available on Github.
Important notes
FPE/FF1v2 algorithms are supported only in the local mode.
The bulk operation is supported for all the variants of FPE/FF1v2.
On performing crypto operations with FPE/FF1v2, the characters in the input data other than those specified by the cardinality, remains preserved and do not get encrypted.
FPE/FF1v2 requires minimum two characters to perform encryption. The maximum data length can be 128000 characters.
FPE/FF1v2 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.