05-22-2010, 05:52 AM
Heres how to encode and decode with Base64 in only two lines of code..
Under "Encode" button
Under "Decode" button
Thought this may come in handy for some..
Under "Encode" button
Code:
TextBox1.Text = Convert.ToBase64String(New System.Text.ASCIIEncoding().GetBytes(TextBox1.Text))
Under "Decode" button
Code:
TextBox1.Text = New System.Text.ASCIIEncoding().GetString(Convert.FromBase64String(TextBox1.Text))
Thought this may come in handy for some..