MD5

MD5(Sourcein, 32);

public static string MD5(string Sourcein, int len)
{
    string text = FormsAuthentication.HashPasswordForStoringInConfigFile(Sourcein, "MD5");
    bool flag = len == 16;
    string result;
    if (flag)
    {
        result = text.Substring(8, 16);
    }
    else
    {
        result = text;
    }
    return result;
}

 

posted @ 2020-07-16 09:11  zeroooooo~  阅读(66)  评论(0)    收藏  举报