I’m new to data encryption, and currently researching on encrypting a 10 digit number with (16bit / 32bit) encryption method. The constraint that i have is that the encrypted value can be a-z A-Z 0-9 and the lenght should be <=10
Would be of help if someone can point me in the right direction.
You can use Vigenere cipher in combination with dec2hex function on programming language you are using to encode the ids safely.
For example, if you use the keyword (in our case not a word, but a digits string),
12345, then an example id of5125891923would become6359303268*. Then you can dec2hex it to get17B0B4464or you can also convert it to the base of 36 (0-9a-z) and get2x65xt0.* In short, you append first digit of keyword to first digit of the id, then second digit of keyword to second digit of the id, … first digit of keyword to sixth digit of the id, etc.