Skip to content

Instantly share code, notes, and snippets.

@tormodfj
Created February 11, 2020 06:50
Show Gist options
  • Save tormodfj/a81c7768e25f289181c0cea115655121 to your computer and use it in GitHub Desktop.
Save tormodfj/a81c7768e25f289181c0cea115655121 to your computer and use it in GitHub Desktop.
using System;
using System.Text;
public class Program
{
public static void Main()
{
var password = "SuperSecretLongPassword";
var bytes = Encoding.UTF8.GetBytes(password);
var base64 = Convert.ToBase64String(bytes);
Console.WriteLine(base64);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment