Converting VB6 AES Rijndael Block Cipher to C# by Phil Fresle
I am converting a classic asp application to C#, and would like to be able to decrypt strings in c# that were originally encrypted in classic asp. the classic asp code is here , and the c# code is here . The problem that i am facing is that the signatures of the Encrypt and Decrypt methods in asp vs C# are different. here is my asp code for decrypting, which wraps the decrypt code. Function AESDecrypt(sCypher) if sCypher <> "" then Dim bytIn() Dim bytOut Dim bytPassword() Dim lCount Dim lLength Dim sTemp Dim sPassword sPassword = "My_Password" lLength = Len(sCypher) ReDim bytIn(lLength/2-1)