NET加密算法是最安全的

NET加密算法是最安全的

本文介绍了哪个内置的.NET加密算法是最安全的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

加密算法是最安全的.net?

解决方案

您不能直接比较所有类型的加密算法。这就像将排序算法与乘法算法进行比较:它们有不同的用途。
这就是说,我会回答:




  • 对称密码:

  • 不对称密码:与4096位密钥(我认为是最大值。 NET)或与571位密钥(但是仅在.NET 3.5中支持)

  • 哈希:

  • 邮件验证码:




Which cryptography algorithm is the most secure that ships with .net?

解决方案

You cannot directly compare all types of cryptographic algorithms. That would be like comparing a sorting algorithm with a multiplication algorithm: they have different purposes.That being said, I would answer:

  • Symmetric cipher: AES-256
  • Asymmetric cipher: RSA with 4096 bit key (I believe that is the maximum in .NET) or ECDSA with 571 bit key (but that is only supported in .NET 3.5)
  • Hash: SHA-512
  • Message Authentication Code: HMAC with SHA-512

That being said, those are overkill for most applications, and you should do fine using AES-128, RSA with 2048 bit key, SHA-256 and HMAC with SHA-256.

这篇关于哪个内置的.NET加密算法是最安全的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-26 01:47