hello im tryisng something like this:
byte[] by_array = clLibrary.StrToByteArray("my text to decrypt");
string pass = clLibrary.Encryption.Decrypt(by_array, "mypassword");
the code raise an error which the translated version is something like "the lenght of the data to decrypt is not valid" here is my Decrypt function:
public static string Decrypt(byte[] br, string password)
{
TripleDES des = CreateDES(password);
ICryptoTransform ct = des.CreateDecryptor();
byte[] input = br;
byte[] output = ct.TransformFinalBlock(input, 0, input.Length);
return Encoding.Unicode.GetString(output);
}
...
Go to the complete details ...