I have a function in ColdFusion that encrypts and decrypts passwords. I need someone to look at the function and point me to or write me a c# equivalent. It is needed for a project asap so I can throw you some cash through paypal if you can help.
CF function:
Decrypt("CLbtkjNkcofJ5D8s4Ri7nA==", "EajmplPP8DHg6Tqq8BVRMw==", "AES", "Base64")
This is the real function, with real data from a test side, that needs to be converted.
Any help would be awesome .. and profitable.
Thanks,
Donnie
Your starting point would be System.Security.Cryptography.Aes
But these things can get quite hairy, for example you need to know which mode to use. Since your example is not showing an IV (initialization vector) you should use
CipherMode.ECB.Here is some test code, I will leave it to you to wrap this up in a nice re-usable function
The answer => “AccessOne”