public static string sHashPw(tvProfile aoProfile) { StringBuilder lsbHashPw = new StringBuilder(); byte[] lbtArray = new SHA256Managed().ComputeHash(Encoding.UTF8.GetBytes(aoProfile.ToString())); foreach (byte lbtValue in lbtArray) { lsbHashPw.Append(lbtValue.ToString()); } return(lsbHashPw.ToString()); }
public static string sHashIt(tvProfile aoProfile) { return(HashClass.sHashPw(aoProfile.ToString().Substring(0, 256))); }