パブリック静的文字列GetMD5(文字列str、文字列エンコーディング)
{
MD5CryptoServiceProvider MD5 =新しいMD5CryptoServiceProvider()。
文字列結果= BitConverter.ToString(MD5.ComputeHash(Encoding.GetEncoding(コード).GetBytes(STR)))( " - "、 "")に置き換え。
結果を返します。
}
C#MD5アルゴリズム
おすすめ
転載: www.cnblogs.com/wenhaiw/p/12175842.html
おすすめ
ランキング