G
Guest
I am entering the world of encryption in my windows form application and have
a question or two about formats. I start out with a string that I would
like to encrypt and store in my sql server database as an encrypted string.
Dim MyString as string = "Now is the time for all good men to come to the
aid of their country"
Now, encyrption algorythms require that his be converted to byte array. So,
Dim MyData() as byte =encoding.ascii.getbytes(MyString.ToCharArray)
?? Is there a better way to do this conversion CType, etc
Now, after encryption, I now have a encrypted byte array that I need to get
back into string format so I can store it in my database as an encrypted
string. Here is where I get confused with string/base64.
Can someone show me how to take a byte array and assign it to a string
variable in vb?
Thanks,
Fred Herring
a question or two about formats. I start out with a string that I would
like to encrypt and store in my sql server database as an encrypted string.
Dim MyString as string = "Now is the time for all good men to come to the
aid of their country"
Now, encyrption algorythms require that his be converted to byte array. So,
Dim MyData() as byte =encoding.ascii.getbytes(MyString.ToCharArray)
?? Is there a better way to do this conversion CType, etc
Now, after encryption, I now have a encrypted byte array that I need to get
back into string format so I can store it in my database as an encrypted
string. Here is where I get confused with string/base64.
Can someone show me how to take a byte array and assign it to a string
variable in vb?
Thanks,
Fred Herring