using Microsoft.AspNetCore.Cryptography.KeyDerivation;
using System;
namespace SyWeb.Admin.Utils
{
public static class Encrypt
{
private static string _salt = "UM1qTXSZqWn9xcGCasbEDQ==";
public static string Pbkdf2(string password)
{
byte[] numArray = Convert.FromBase64String(Encrypt._salt);
return Convert.ToBase64String(KeyDerivation.Pbkdf2(password, numArray, (KeyDerivationPrf) 0, 10000, 32));
}
}
}
哪位大神能把 Pbkdf2('ShanYoung2020!') 生成結果發給我嗎
uj5u.com熱心網友回復:
http://anandam.name/pbkdf2/自己去生成啊
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/248338.html
標籤:ASP.NET
