static byte[] GetHashed (string purposes) { using (var hash = SHA512.Create ()) { var bytes = Encoding.UTF8.GetBytes (purposes); return hash.ComputeHash (bytes, 0, bytes.Length); } } #endif