I want to make a Software which decodes Base64-encoded text strings and vice versa.
Any help provided on the topic with coding in Visual Basic will help me a lot.
Thank you.
Note:-c# language can also be implemented
I want to make a Software which decodes Base64-encoded text strings and vice versa.
Share
You need to call
Convert.ToBase64StringandConvert.FromBase64String.These methods convert byte arrays to and from Base64.
If you want to encode a string in Base64, you’ll need to convert it to a byte array by calling
Encoding.Unicode.GetBytes(str)andEncoding.Unicode.GetString(bytes). (In theSystem.Textnamespace)Note that Base64 should never be used for encryption, except to convert a byte array that was already encrypted into a string.
If you want to encrypt data, use the
RijndaelManagedclass.