Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
调用该System.Security.Cryptography.Aes.Create(algorithmName)方法时,会生成一个新的密钥和 IV。这些足够好用吗?
System.Security.Cryptography.Aes.Create(algorithmName)
这些值可以安全使用。像这样的框架的全部目的是使加密随机值的生成更容易。示例代码Aes.Create()中也用到了
Aes.Create()
此外,文档描述了Aes.Create():
创建用于执行对称算法的加密对象。
该库由 Microsoft 维护,我认为可以肯定地说它们的值是“安全的”使用。