Created
February 11, 2020 06:50
-
-
Save tormodfj/a81c7768e25f289181c0cea115655121 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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