Jump to content

Convert code from C#


Recommended Posts

Hello,

 

I am trying to convert code from C# to AutoIt. This is the code:

byte[] lv_aKey = { 23, 82, 107, 6, 35, 78, 88, 7 };
byte[] lv_aPwd = ToByteArray(password);

//--> here I don't know which AutoIt function to use
DES des = new DESCryptoServiceProvider();
des.Padding = PaddingMode.None;
des.Mode = CipherMode.ECB;

ICryptoTransform dec = des.CreateDecryptor(lv_aKey, null);
dec.TransformBlock(lv_aPwd, 0, lv_aPwd.Length, response, 0);
//<-- here I don't know which AutoIt function to use

return System.Text.ASCIIEncoding.ASCII.GetString(response);

I am having problems with the crypt functions - can someone point me in the right direction?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...