using System.Security.Cryptography;
public static void Main()
string password = "SuperSecurePassword";
string salt = "RandomSalt";
byte[] bytesToHash = Encoding.UTF8.GetBytes(password + salt);
using(SHA512Managed hasher = new SHA512Managed())
byte[] hashedPasswordBytes = hasher.ComputeHash(bytesToHash);
Console.WriteLine(Convert.ToBase64String(hashedPasswordBytes));