Relative Content

Tag Archive for pythonencryptioncryptographylets-encryptencryption-symmetric

How to encrypt with preserving the format alphanumeric texts

How to do FPE (format preserving encryption) on a text like ‘A123456’ , if the encryption preserved the format I should get a string with a char than 6 digits , for example ‘Z655432’ , I used the python library FF3 , so I split the string ‘A123456’ to ‘A’ and ‘123456’ and I apply the FF3cipher to each string , well here I find the minimum characters problem so I have to do some padding on ‘A’, the problem is when u do padding u lost the format, u wont get the format that u want.

How to encrypt with preserving the format alphanumeric texts

How to do FPE (format preserving encryption) on a text like ‘A123456’ , if the encryption preserved the format I should get a string with a char than 6 digits , for example ‘Z655432’ , I used the python library FF3 , so I split the string ‘A123456’ to ‘A’ and ‘123456’ and I apply the FF3cipher to each string , well here I find the minimum characters problem so I have to do some padding on ‘A’, the problem is when u do padding u lost the format, u wont get the format that u want.

FPE (Format Preserving Encryption) in case of short message (minimum characters problem)

How to do FPE (format preserving encryption) on a text like ‘A123456’ , if the encryption preserved the format I should get a string with a char than 6 digits , for example ‘Z655432’ , I used the python library FF3 , so I split the string ‘A123456’ to ‘A’ and ‘123456’ and I apply the FF3cipher to each string , well here I find the minimum characters problem so I have to do some padding on ‘A’, the problem is when u do padding u lost the format, u wont get the format that u want.