예제 #1
0
 public string CreatePasswordHash(string password)
 {
     if (this._salt == null)
     {
         throw new SaltIsNullException("Salt canot be null. Set value or generate new one.");
     }
     byte[] hashed = GenerateHash(password);
     return(BytesHelper.BytesToString(hashed));
 }
예제 #2
0
 public string GetSalt()
 {
     return(BytesHelper.BytesToString(this._salt));
 }