Exemplo n.º 1
0
 /// <summary> Creates the password from the given data and salt </summary>
 public Password(SecureString data)
     : this(true, SecureStringUtils.ToByteArray(data, Password.Encoding))
 {
 }
Exemplo n.º 2
0
 /// <summary> Creates the hash from the given data and salt </summary>
 public PasswordHash(SecureString data)
     : this(true, SecureStringUtils.ToByteArray(data, Password.Encoding), new Salt())
 {
 }
Exemplo n.º 3
0
 /// <summary> Returns a System.Security.SecureString from the password </summary>
 public SecureString ToSecureString()
 {
     using (Stream io = ReadBytes())
         return(SecureStringUtils.Create(io, Password.Encoding));
 }
Exemplo n.º 4
0
 /// <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)
 {
 }