<?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: How do i encrypt &amp; decrypt input parameter in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-do-i-encrypt-decrypt-input-parameter/m-p/73910#M26515</link>
    <description>Thanks a lot ,&amp;nbsp;&lt;BR /&gt;You made my day !!!!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Amit Chauhan&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 05 Jun 2020 19:19:00 GMT</pubDate>
    <dc:creator>AmitChauhan</dc:creator>
    <dc:date>2020-06-05T19:19:00Z</dc:date>
    <item>
      <title>How do i encrypt &amp; decrypt input parameter</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-do-i-encrypt-decrypt-input-parameter/m-p/73906#M26511</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to&amp;nbsp;encrypt &amp;amp; decrypt input parameter by using&amp;nbsp;AES-256 AesCryptoService scheme, can some one please help me out how do i achieve encryption &amp;amp; decryption in my object or process.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Amit&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Amit Chauhan&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Jun 2020 09:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-do-i-encrypt-decrypt-input-parameter/m-p/73906#M26511</guid>
      <dc:creator>AmitChauhan</dc:creator>
      <dc:date>2020-06-04T09:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: How do i encrypt &amp; decrypt input parameter</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-do-i-encrypt-decrypt-input-parameter/m-p/73907#M26512</link>
      <description>You can extend the Utility Encryption VBO to do AES256 encryption.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Gopal Bhaire&lt;BR /&gt;Analyst&lt;BR /&gt;Accenture&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Jun 2020 12:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-do-i-encrypt-decrypt-input-parameter/m-p/73907#M26512</guid>
      <dc:creator>GopalBhaire</dc:creator>
      <dc:date>2020-06-04T12:25:00Z</dc:date>
    </item>
    <item>
      <title>RE: How do i encrypt &amp; decrypt input parameter</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-do-i-encrypt-decrypt-input-parameter/m-p/73908#M26513</link>
      <description>Thanks!!&lt;BR /&gt;I have used Utility Encryption, But utility support DES&lt;SPAN&gt;CryptoService and i have to use AES,&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;It would be great help if you can do let me know how do i extend Encryption VBO for&amp;nbsp;&lt;SPAN&gt;AES256&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Amit Chauhan&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Jun 2020 17:35:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-do-i-encrypt-decrypt-input-parameter/m-p/73908#M26513</guid>
      <dc:creator>AmitChauhan</dc:creator>
      <dc:date>2020-06-04T17:35:00Z</dc:date>
    </item>
    <item>
      <title>RE: How do i encrypt &amp; decrypt input parameter</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-do-i-encrypt-decrypt-input-parameter/m-p/73909#M26514</link>
      <description>Refer&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.aes?view=netcore-3.1" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.aes?view=netcore-3.1&lt;/A&gt;&amp;nbsp; you can write something like this. Here I am creating key and then passing it to encrypt&amp;nbsp;&lt;BR /&gt;
&lt;PRE class="language-markup"&gt;Action: Generate Key
Output: key, IV and store in Credential Management

Using myAes As Aes = Aes.Create()
	key = Convert.ToBase64String(myAes.Key)
	IV = Convert.ToBase64String(myAes.IV)
End Using
++++++++++++++++++++++++++++++++++++++++++++++++
Action: Encrypt
Input: Key, IV,(from, Credential Management) plaintext 
Output: encrypted

Using aesAlg As Aes = Aes.Create()
        aesAlg.Key = Key
        aesAlg.IV = IV
        Dim encryptor As ICryptoTransform = aesAlg.CreateEncryptor(aesAlg.Key, aesAlg.IV)

        Using msEncrypt As MemoryStream = New MemoryStream()

            Using csEncrypt As CryptoStream = New CryptoStream(msEncrypt, encryptor, CryptoStreamMode.Write)

                Using swEncrypt As StreamWriter = New StreamWriter(csEncrypt)
                    swEncrypt.Write(plainText)
                End Using

                encrypted = msEncrypt.ToArray()
            End Using
        End Using
    End Using

encrypted = Convert.ToBase64String(encrypted)​&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Gopal Bhaire&lt;BR /&gt;Analyst&lt;BR /&gt;Accenture&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Jun 2020 13:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-do-i-encrypt-decrypt-input-parameter/m-p/73909#M26514</guid>
      <dc:creator>GopalBhaire</dc:creator>
      <dc:date>2020-06-05T13:26:00Z</dc:date>
    </item>
    <item>
      <title>RE: How do i encrypt &amp; decrypt input parameter</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-do-i-encrypt-decrypt-input-parameter/m-p/73910#M26515</link>
      <description>Thanks a lot ,&amp;nbsp;&lt;BR /&gt;You made my day !!!!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Amit Chauhan&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Jun 2020 19:19:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-do-i-encrypt-decrypt-input-parameter/m-p/73910#M26515</guid>
      <dc:creator>AmitChauhan</dc:creator>
      <dc:date>2020-06-05T19:19:00Z</dc:date>
    </item>
    <item>
      <title>RE: How do i encrypt &amp; decrypt input parameter</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-do-i-encrypt-decrypt-input-parameter/m-p/73911#M26516</link>
      <description>Thanks Gopal&amp;nbsp; for your help!!&lt;BR /&gt;&lt;BR /&gt;As suggested by you, I have used [(encStream As New CryptoStream(ms, _encStream As New CryptoStream(ms, _ aes.CreateEncryptor(keyb, aes.IV), CryptoStreamMode.Write) Dim sw As New StreamWriter(encStream))] code and AES256 encryption algo&amp;nbsp; and it is working fine for me.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Amit Chauhan&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jun 2020 17:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-do-i-encrypt-decrypt-input-parameter/m-p/73911#M26516</guid>
      <dc:creator>AmitChauhan</dc:creator>
      <dc:date>2020-06-15T17:27:00Z</dc:date>
    </item>
  </channel>
</rss>

