コード例 #1
0
        public void HashPassword()
        {
            var target = new Pbkdf2Security(this._Configuration);

            // this._NumberOfRounds = 1000;
            //HelloWorld
            //M4jZrsPV2wNAeOH1YooKUdALx6Ek0DJaMf8yoiYI0Mc=
            Assert.Equal("M4jZrsPV2wNAeOH1YooKUdALx6Ek0DJaMf8yoiYI0Mc=", target.HashPassword("HelloWorld"));
        }
コード例 #2
0
 public IntegrationsController(AccountService accountService, Pbkdf2Security pbkdf2Security)
 {
     this._AccountService = accountService;
     this._Pbkdf2Security = pbkdf2Security;
 }