Skip to content

Instantly share code, notes, and snippets.

@pdubb29
Created May 1, 2018 15:28
Show Gist options
  • Save pdubb29/cfe4f17c0f3861b06ee68eb846e82f74 to your computer and use it in GitHub Desktop.
Save pdubb29/cfe4f17c0f3861b06ee68eb846e82f74 to your computer and use it in GitHub Desktop.
Convert a base 64 string to a string value.
var mystring = ""; //insert string here.
var encodedBytes = System.Convert.FromBase64String(mystring);
var theString = System.Text.Encoding.UTF8.GetString(encodedBytes);
Console.WriteLine(theString);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment