Backup/Functions.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Web.Security;
namespace Hr
{
public class publicfunc
{
public publicfunc()
{
//空的构造方法
}
public static string Encode(string str)
{
str = str.Replace("&","&");
str = str.Replace("'","''");
str = str.Replace("\"",""");
str = str.Replace(" "," ");
str = str.Replace("<","<");
str = str.Replace(">",">");
str = str.Replace("\n","<br>");
return str;
}
public static string Decode(string str)
{
str = str.Replace("<br>","\n");
str = str.Replace(">",">");
str = str.Replace("<","<");
str = str.Replace(" "," ");
str = str.Replace(""","\"");
return str;
}
public static string Encrypt(string Password)
{
string str = "";
FormsAuthenticationTicket ticket = new System.Web.Security.FormsAuthenticationTicket(Password,true,2);
str = FormsAuthentication.Encrypt(ticket).ToString();
return str;
}
public static string Encrypt(string Password,int Format)
{
string str = "";
switch(Format)
{
case 0:
str = FormsAuthentication.HashPasswordForStoringInConfigFile(Password,"SHA1");
break;
case 1:
str = FormsAuthentication.HashPasswordForStoringInConfigFile(Password,"MD5");
break;
}
return str;
}
public static string Decrypt(string Passowrd)
{
后面还有 249 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
