<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Blue Prism credentials database criptography in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-credentials-database-criptography/m-p/100988#M48106</link>
    <description>&lt;P&gt;Hello &lt;A class="user-content-mention" data-sign="@" data-contactkey="c90950ea-7d45-4417-8d80-cfeb99c5e9ff" data-tag-text="@Tobias Arnold" href="https://community.blueprism.com/network/profile?UserKey=c90950ea-7d45-4417-8d80-cfeb99c5e9ff" data-itemmentionkey="660203c7-711d-4600-a7e7-d181c4a3dbe9"&gt;@Tobias Arnold&lt;/A&gt; and @Vitor.&lt;/P&gt;
&lt;P&gt;Do you know hot to convert the secret key we have in BP (44 byte string) to a 32 byte string necessary to submit to AES 256 decrypt routine?&lt;/P&gt;
&lt;P&gt;We have the encrypted text, the IV, the secret key, but the secret key is not accepted by the routine Tobias sent.&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;Flavio&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2023 22:22:53 GMT</pubDate>
    <dc:creator>flavio.lara</dc:creator>
    <dc:date>2023-09-26T22:22:53Z</dc:date>
    <item>
      <title>Blue Prism credentials database criptography</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-credentials-database-criptography/m-p/100986#M48104</link>
      <description>Hello everyone,&lt;BR /&gt;&lt;BR /&gt;I was trying to understand how credentials criptography works in blue prism. I saw in BP community that blue prism uses AES 256&amp;nbsp; to encrypt data. I'm using default encryption scheme, so I though all data that I want to encrypt would be in the following format &lt;SPAN style="font-size: 8pt"&gt;(just an example)&lt;/SPAN&gt;:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline; font-size: 10pt"&gt;/2WIRTIxR/&lt;WBR /&gt;JzFhb7K5DXvcRekqbDh6MDnfp+&lt;WBR /&gt;eFExCUE=&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;But the encrypted password that I see in SQL Server interface is something like this &lt;SPAN style="font-size: 8pt"&gt;(just an example)&lt;/SPAN&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline; font-size: 10pt"&gt;/2WIRTIxR/&lt;WBR /&gt;JzFhb7K5DXvcRekqbDh6MDnfp+&lt;WBR /&gt;eFExCUE=&lt;STRONG&gt;:&lt;/STRONG&gt;K5DXvcRekqbDhIxR/&lt;WBR /&gt;JzFhb7MDnfp+&lt;WBR /&gt;e&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Notice the data is separated by " : ". And passwords are all in this format.&lt;BR /&gt;I made an extended research to find the reason, thought it was a SQL procedure in the background or other kind of encryption, but no answers.&amp;nbsp;&lt;BR /&gt;My goal is to create a better method to update our bots credentials.&lt;BR /&gt;&lt;BR /&gt;There's someone who can help me? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;​</description>
      <pubDate>Mon, 02 May 2022 16:33:49 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-credentials-database-criptography/m-p/100986#M48104</guid>
      <dc:creator>Vitor_HugoVicen</dc:creator>
      <dc:date>2022-05-02T16:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Blue Prism credentials database criptography</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-credentials-database-criptography/m-p/100987#M48105</link>
      <description>Hi Vitor,&lt;BR /&gt;&lt;BR /&gt;Due to the nature of AES256 you need a key and an IV (salt).&lt;BR /&gt;If I remember correctly the first part (left side of ':') is the IV and right part is the crypted password.&lt;BR /&gt;If you have the key you can decrypt the password with this .NET code (maybe in a VBO) &lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.aes?view=netframework-4.8" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.aes?view=netframework-4.8&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-csharp"&gt;&lt;CODE&gt;static string DecryptStringFromBytes_Aes(byte[] cipherText, byte[] Key, byte[] IV)
        {
            // Check arguments.
            if (cipherText == null || cipherText.Length &amp;lt;= 0)
                throw new ArgumentNullException("cipherText");
            if (Key == null || Key.Length &amp;lt;= 0)
                throw new ArgumentNullException("Key");
            if (IV == null || IV.Length &amp;lt;= 0)
                throw new ArgumentNullException("IV");

            // Declare the string used to hold
            // the decrypted text.
            string plaintext = null;

            // Create an Aes object
            // with the specified key and IV.
            using (Aes aesAlg = Aes.Create())
            {
                aesAlg.Key = Key;
                aesAlg.IV = IV;

                // Create a decryptor to perform the stream transform.
                ICryptoTransform decryptor = aesAlg.CreateDecryptor(aesAlg.Key, aesAlg.IV);

                // Create the streams used for decryption.
                using (MemoryStream msDecrypt = new MemoryStream(cipherText))
                {
                    using (CryptoStream csDecrypt = new CryptoStream(msDecrypt, decryptor, CryptoStreamMode.Read))
                    {
                        using (StreamReader srDecrypt = new StreamReader(csDecrypt))
                        {

                            // Read the decrypted bytes from the decrypting stream
                            // and place them in a string.
                            plaintext = srDecrypt.ReadToEnd();
                        }
                    }
                }
            }

            return plaintext;
        }​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 03 May 2022 13:50:03 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-credentials-database-criptography/m-p/100987#M48105</guid>
      <dc:creator>TobiasArnold</dc:creator>
      <dc:date>2022-05-03T13:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Blue Prism credentials database criptography</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-credentials-database-criptography/m-p/100988#M48106</link>
      <description>&lt;P&gt;Hello &lt;A class="user-content-mention" data-sign="@" data-contactkey="c90950ea-7d45-4417-8d80-cfeb99c5e9ff" data-tag-text="@Tobias Arnold" href="https://community.blueprism.com/network/profile?UserKey=c90950ea-7d45-4417-8d80-cfeb99c5e9ff" data-itemmentionkey="660203c7-711d-4600-a7e7-d181c4a3dbe9"&gt;@Tobias Arnold&lt;/A&gt; and @Vitor.&lt;/P&gt;
&lt;P&gt;Do you know hot to convert the secret key we have in BP (44 byte string) to a 32 byte string necessary to submit to AES 256 decrypt routine?&lt;/P&gt;
&lt;P&gt;We have the encrypted text, the IV, the secret key, but the secret key is not accepted by the routine Tobias sent.&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;Flavio&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 22:22:53 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-credentials-database-criptography/m-p/100988#M48106</guid>
      <dc:creator>flavio.lara</dc:creator>
      <dc:date>2023-09-26T22:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Blue Prism credentials database criptography</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-credentials-database-criptography/m-p/100989#M48107</link>
      <description>&lt;P&gt;Hi Flavio,&lt;/P&gt;
&lt;P&gt;I've checked the routine and it is still working. I call the decode method the following way&lt;/P&gt;
&lt;PRE class="language-csharp"&gt;&lt;CODE&gt;        {
            var key = Convert.FromBase64String("&amp;lt;Key&amp;gt;");
            var secret = "&amp;lt;IV&amp;gt;:&amp;lt;SecretText&amp;gt;";
            var parts = secret.Split(':');
            var IV = Convert.FromBase64String(parts[0]);
            var text = Convert.FromBase64String(parts[1]);

            var decodedText = DecryptStringFromBytes_Aes(text, key, IV);
        }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Sep 2023 06:02:13 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-credentials-database-criptography/m-p/100989#M48107</guid>
      <dc:creator>TobiasArnold</dc:creator>
      <dc:date>2023-09-27T06:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Blue Prism credentials database criptography</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-credentials-database-criptography/m-p/100990#M48108</link>
      <description>&lt;P&gt;Thank you &lt;A class="user-content-mention" data-sign="@" data-contactkey="c90950ea-7d45-4417-8d80-cfeb99c5e9ff" data-tag-text="@Tobias Arnold" href="https://community.blueprism.com/network/profile?UserKey=c90950ea-7d45-4417-8d80-cfeb99c5e9ff" data-itemmentionkey="b9fe22aa-93db-4fb0-abc8-3b239bdcb451"&gt;@Tobias Arnold&lt;/A&gt;!&lt;/P&gt;
&lt;P&gt;It worked!!!!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 10:06:56 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-credentials-database-criptography/m-p/100990#M48108</guid>
      <dc:creator>flavio.lara</dc:creator>
      <dc:date>2023-09-27T10:06:56Z</dc:date>
    </item>
  </channel>
</rss>

