Serv-U的加密算法

ChenReal

昨天晚上突然接到机房的中秋大礼——

我们服务器的IP段要改,这下可忙个不亦乐乎了

原来的主机管理系统也暂时不能用了,有些FTP要重新恢复一下的。故此找了些Serv-U加密算法的资料~~

用完,先贴到这里留个备用吧。

public
{
	Random rnm = new Random();
	char a = (char)(rnm.Next( 97, 123 ));
	char b = (char)(rnm.Next( 97, 123 ));
	string password = string.Format("{0}{1}{2}", a, b, Password );
	password = FormsAuthentication.HashPasswordForStoringInConfigFile( password, "md5" );
	password = string.Format( "{0}{1}{2}", a, b, password.ToUpper() );
	return password;
}