decryption
-
hi sir i am using following code for encrypt my textbox value and save it in encrypted form to our database. Public function encrp(ByVal enc As String) As String Dim ctr As Byte() = System.Text.ASCIIEncoding.ASCII.GetBytes(enc) Dim c As String = System.Convert.ToBase64String(ctr) Return c End function and following code for decrypt the value for showing in textbox Public function decryp(ByVal c As String) As String Dim b1 As Byte() = System.Convert.FromBase64String(c) Dim f As String = System.Text.ASCIIEncoding.ASCII.GetString(b1) Return f End function but sir i am unable to decrypt my dataset with the help of this function to show the record in datagridview.so please help me for decrypt the dataset. sir reply please.
-
hi sir i am using following code for encrypt my textbox value and save it in encrypted form to our database. Public function encrp(ByVal enc As String) As String Dim ctr As Byte() = System.Text.ASCIIEncoding.ASCII.GetBytes(enc) Dim c As String = System.Convert.ToBase64String(ctr) Return c End function and following code for decrypt the value for showing in textbox Public function decryp(ByVal c As String) As String Dim b1 As Byte() = System.Convert.FromBase64String(c) Dim f As String = System.Text.ASCIIEncoding.ASCII.GetString(b1) Return f End function but sir i am unable to decrypt my dataset with the help of this function to show the record in datagridview.so please help me for decrypt the dataset. sir reply please.
Don't post the same question again in the same day. You just posted this less than 4 hours ago.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...