Example #1
0
 /// <summary> Creates the password from the given data and salt </summary>
 public Password(SecureString data)
     : this(true, SecureStringUtils.ToByteArray(data, Password.Encoding))
 {
 }
Example #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())
 {
 }
Example #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));
 }
Example #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)
 {
 }