namespace TEAMModelOS.SDK.Helper.Security.BCryptHelper { /// /// BCrypt散列加密算法 /// public class BCryptHelper { /// /// 加密 /// /// /// public static string Ecrypt(string code) { return BCrypt.Net.BCrypt.EnhancedHashPassword(code); } /// /// 验证 /// /// /// /// public static bool Verify(string code, string encode) { return BCrypt.Net.BCrypt.EnhancedVerify(code, encode); } } }