Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27226

VS 2010 Decrypt values in Datatable then display them to a datagridview

$
0
0
Hello again VB masters. I have stumbled upon the following challenge. I add/update records through a data grid view in a database table. So far so good... I moved a step forward and encrypted the contents of each cell of the data grid view and then updated the database. Now i want to retrieve the encrypted data from the database table, decrypt them and then display them to the data grid view. the method I'm trying to use is the following...

Code:

        Dim myAES As New IntegralCrypt

        Dim ii, ij As Integer

        For ii = 0 To ii = DT.Rows.Count - 1
            For ij = 1 To DT.Columns.Count - 1
                myAES.AES_Decrypt(DT.Columns.Item(ij).ToString, getEncryptionKey)
            Next ij
        Next ii

    End Sub

But i don't know what i'm missing here... can you please help me ? it's very important.

Thank you in advance

Viewing all articles
Browse latest Browse all 27226

Trending Articles



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