DTcms.API/DTcms.API.Payment.tenpaypc/MD5Util.cs

(完整代码) 748B

using System;
using System.Security.Cryptography;
using System.Text;

namespace DTcms.API.Payment.tenpaypc
{
	public class MD5Util
	{
		public static string GetMD5(string encypStr, string charset)
		{
			System.Security.Cryptography.MD5CryptoServiceProvider m5 = new System.Security.Cryptography.MD5CryptoServiceProvider();
			byte[] inputBye;
			try
			{
				inputBye = System.Text.Encoding.GetEncoding(charset).GetBytes(encypStr);
			}
			catch (System.Exception ex_18)
			{
				inputBye = System.Text.Encoding.GetEncoding("GB2312").GetBytes(encypStr);
			}
			byte[] outputBye = m5.ComputeHash(inputBye);
			string retStr = System.BitConverter.ToString(outputBye);
			return retStr.Replace("-", "").ToUpper();
		}
	}
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。