I have a salary field and I want to save it as an encrypt numeric only data, for example $1000 should be saved as something like 7763284658365837927 (let's say 20 digits)
I have a salary field and I want to save it as an encrypt numeric only data, for example $1000 should be saved as something like 7763284658365837927 (let's say 20 digits)
how to encrypt numeric to numeric
arch_angel81
you can use MD5 - one way hash which means you can only encrypt but not decrypt.
To decrypt and encrypt take a look at these:
http://msdn2.microsoft.com/en-us/library/system.security.cryptography.rijndael.aspx
http://msdn2.microsoft.com/en-us/library/system.security.cryptography.tripledes.aspx
Hope these help
Here2Play
Also you need some none symetric algorithm, because if several people have same salary, encrypted string will be the same.