关汉卿大德歌冬注音:帮忙看下这段c#代码

来源:百度文库 编辑:高考问答 时间:2024/05/04 22:48:59
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生成密码的效验
该过程是不可逆的
可以保证密码不被反向出来