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)); }
public string GetSalt() { return(BytesHelper.BytesToString(this._salt)); }