Quantcast
Channel: UiPath Community Forum - Topics tagged error
Viewing all articles
Browse latest Browse all 4384

Error using Dcrypt Text using TripleDES Method

$
0
0

@shyamm wrote:

Hello Every One ,
i want decrypt the text using TripleDES Method mean while i’m getting below error.
“Decrypt Text: A cryptographic operation has failed. Please make sure you use the same algorithm and key for both encryption and decryption operations.”

i used public static string Encrypt(string input)
{

        string key = "xxxxxxxxxxxxx";
        byte[] inputArray = UTF8Encoding.UTF8.GetBytes(input);
        TripleDESCryptoServiceProvider tripleDES = new TripleDESCryptoServiceProvider();
        tripleDES.Key = UTF8Encoding.UTF8.GetBytes(key)

;
tripleDES.Mode = CipherMode.ECB;
tripleDES.Padding = PaddingMode.PKCS7;
ICryptoTransform cTransform = tripleDES.CreateEncryptor();
byte resultArray = cTransform.TransformFinalBlock(inputArray, 0, inputArray.Length);
tripleDES.Clear();
return Convert.ToBase64String(resultArray, 0, resultArray.Length);
}

above code to encrypt the the text.
its working fine in C# while encrypting and decrypting.
using uipath i’m unable to decrypt the above encrypted code

may i know based on which parameters and modes TripleDES Method working in uipath

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>