using System.Security.Cryptography;
public static void Main()
string password = "Qwerty18!";
if (!string.IsNullOrEmpty(password))
UTF8Encoding textConverter = new UTF8Encoding();
byte[] passBytes = textConverter.GetBytes(password);
b64Password = Convert.ToBase64String(new SHA384Managed().ComputeHash(passBytes));
Console.WriteLine(b64Password);