FromString() public static method

Return a TpmHash that is the hash of Encoding.Unicode.GetBytes(password)
public static FromString ( TpmAlgId hashAlg, string password ) : TpmHash
hashAlg TpmAlgId
password string
return TpmHash
Ejemplo n.º 1
0
 /// <summary>
 /// Create an AuthValue from the hash of the string.  See TpmHash.FromString for the transformation used.
 /// </summary>
 /// <param name="hashAlg"></param>
 /// <param name="password"></param>
 /// <returns></returns>
 public static AuthValue FromString(TpmAlgId hashAlg, string password)
 {
     return(new AuthValue(TpmHash.FromString(hashAlg, password)));
 }