I build a program to do the format preserving encryption in python for all types of data (numeric, alphanumeric and alphabetic) that preserves the type alpha or numeric and also the upper case and lower case
for example Hdcj213 will be encrypted to something like this Bcdg980
the only problem that I have is data less then minimum requirement
for ff3 (FPE algorithm) numeric encryption -> the minimum is 6 digits (I cannot encrypt and preserve the format of for example 492)
for alphabetic the minimum is 4 chars
padding is not a solution cuz if u apply a padding u will loose the format after the encryption
and the whole thing is about preserving the format
IS THERE A SOLUTION ?