コード例 #1
0
 public bool WriterLogin(WriterDto writerLoginDto)
 {
     using (var hmac = new System.Security.Cryptography.HMACSHA512())
     {
         var writer = _writerService.fetchWriterList();
         foreach (var item in writer)
         {
             if (HashingHelper.WriterVerifyPasswordHash(writerLoginDto.WriterPassword, item.WriterPasswordHash, item.WriterPasswordSalt))
             {
                 return(true);
             }
         }
         return(false);
     }
 }