private IPasswordManager CreateManager(Password password) { var passwordStore = new MockPasswordStore(password); var encryptor = new PassThruEncryptor(); // See https://en.wikipedia.org/wiki/PBKDF2 for hash iteration recommendations return(new PasswordManager(new PasswordHasher(11528), passwordStore, encryptor)); }
public void Init() { _passwordStore = new Mock <IPasswordStore>(); var encryptor = new PassThruEncryptor(); _passwordManager = new PasswordManager(new PasswordHasher(11528), _passwordStore.Object, encryptor); }