小编tus*_*309的帖子

在.NETCore中替换CryptoConfig类有什么用?

目前我在我的UWP应用程序中这样做

byte[] bytes = new UTF8Encoding().GetBytes(Password);
byte[] hash = ((HashAlgorithm)CryptoConfig.CreateFromName("MD5")).ComputeHash(bytes);
string hashstring = BitConverter.ToString(hash);
Run Code Online (Sandbox Code Playgroud)

我搜索了很多,但在.NETCore中找不到CryptoConfig类的替代品.

.net c# cryptography .net-core

1
推荐指数
1
解决办法
378
查看次数

标签 统计

.net ×1

.net-core ×1

c# ×1

cryptography ×1