/// <summary> Creates the password from the given data and salt </summary> public Password(SecureString data) : this(true, SecureStringUtils.ToByteArray(data, Password.Encoding)) { }
/// <summary> Creates the hash from the given data and salt </summary> public PasswordHash(SecureString data) : this(true, SecureStringUtils.ToByteArray(data, Password.Encoding), new Salt()) { }
/// <summary> Returns a System.Security.SecureString from the password </summary> public SecureString ToSecureString() { using (Stream io = ReadBytes()) return(SecureStringUtils.Create(io, Password.Encoding)); }
/// <summary> Creates the hash from the given data and salt </summary> public PasswordHash(SecureString data, Salt salt) : this(true, SecureStringUtils.ToByteArray(data, Password.Encoding), salt) { }