最活跃的化学元素:帮忙看下这段c#代码

来源:百度文库 编辑:中科新闻网 时间:2024/05/21 09:24:01
public shared string Encrypt(string password)
{
Byte[] ClearBytes=new UnicodeEncoding().GetBytes(password)
Byte[] HashedBytes=_
((HashAlgorithm CryptoConfig.CreateFromName("MD5")).
computeHash(ClearBytes)
return BitConverter.Tostring(HashedBytes)
}
这段用vb怎么写啊

代码的意思是使用MD5生成密码的效验
该过程是不可逆的
可以保证密码不被反向出来