Jump to content

Recommended Posts

Posted

       string keyValue = "";
            System.Text.UTF8Encoding UTF8 = new System.Text.UTF8Encoding();
            AesManaged tdes = new AesManaged();
            tdes.Key = bArr2;
            tdes.Mode = CipherMode.ECB;
            tdes.Padding = PaddingMode.PKCS7;
            ICryptoTransform crypt = tdes.CreateEncryptor();
            byte[] plain = Encoding.UTF8.GetBytes(text);
            byte[] cipher = crypt.TransformFinalBlock(plain, 0, plain.Length);
            StringBuilder stringBuilder = new StringBuilder(cipher.Length * 2);
             String encryptedText = Convert.ToBase64String(bArr2);
            MessageBox.Show(System.Text.Encoding.UTF8.GetString(bArr2));
            textBox1.Text = System.Text.Encoding.UTF8.GetString(bArr2);

Posted
  On 8/13/2021 at 12:44 PM, BigDaddyO said:

I believe you should look at _Crypt_EncryptData in the help file:  Specifically Example #2

Expand  

 tdes.Key = bArr2; c#

can you give me an example of this, thank you

  • Moderators
Posted

@Than the help file is your friend. Almost every function has at least one, if not multiple, examples:

 

https://www.autoitscript.com/autoit3/docs/libfunctions/_Crypt_EncryptData.htm

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...