JumboTCMS_src/JumboTCMS.Utils/MD5.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
* 程序名称: JumboTCMS(将博内容管理系统通用版)
*
* 程序版本: 7.x
*
* 程序作者: 子木将博 (QQ:791104444@qq.com,仅限商业合作)
*
* 版权申明: http://www.jumbotcms.net/about/copyright.html
*
* 技术答疑: http://forum.jumbotcms.net/
*
*/
using System;
namespace JumboTCMS.Utils
{
/// <summary>
/// MD5加密
/// </summary>
public static class MD5
{
/// <summary>
/// 64位双重MD5小写
/// </summary>
/// <returns></returns>
public static string Last64(string s)
{
if (s.Length != 32)
return "";
string s1 = s.Substring(0, 16);
string s2 = s.Substring(16, 16);
return Lower32(s1) + Lower32(s2);
}
/// <summary>
/// 32位大写
/// </summary>
/// <returns></returns>
public static string Upper32(string s)
{
s = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(s, "md5").ToString();
return s.ToUpper();
}
/// <summary>
/// 32位小写
/// </summary>
/// <returns></returns>
public static string Lower32(string s)
{
s = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(s, "md5").ToString();
return s.ToLower();
}
/// <summary>
/// 16位大写
/// </summary>
/// <returns></returns>
public static string Upper16(string s)
{
s = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(s, "md5").ToString();
return s.ToUpper().Substring(8, 16);
}
后面还有 11 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。