Web/PublicClass.cs
(完整代码) 1KBusing System;
using System.Security.Cryptography;
using System.Configuration;
namespace Web
{
/// <summary>
/// PC 的摘要说明。
/// </summary>
public class PublicClass : System.Web.UI.Page
{
public PublicClass()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
public static bool IsNumeric(string num)
{
try
{
Int32.Parse(num);
return true;
}
catch
{
return false;
}
}
public static string StrR(string str)
{
str = str.Replace("'", "''");
return str;
}
public static string MD5(string sDataIn)
{
string Result;
MD5CryptoServiceProvider md5=new MD5CryptoServiceProvider();
byte[]bytValue,bytHash;
bytValue = System.Text.Encoding.UTF8.GetBytes(sDataIn);
bytHash = md5.ComputeHash(bytValue);
md5.Clear();
string sTemp="";
for(int i=0;i<bytHash.Length;i++)
{
sTemp+=bytHash[i].ToString("X").PadLeft(2,'0');
}
Result = sTemp.ToLower();
return Result.Substring(8,16);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。