public static string Encode(string userId, string password) {
decimal d = 0m;
int num = 0;
string s = userId + password;
byte[] bytes = Encoding.Default.GetBytes(s);
while (num < bytes.Length) {
d = (d + bytes[num] * 0.320924197909306m) * 0.314159625358979m;
num++;
}
string text = d.ToString("F18");
return text.Substring(text.IndexOf('.') + 1, 10);
}
用户+明文密码 简单的加密
最新推荐文章于 2023-02-16 23:30:27 发布