简体   繁体   中英

Is the AES key good enough?

When the System.Security.Cryptography.Aes.Create(algorithmName) method is called, a new key and IV are generated. Are these good enough to use?

Those values are safe to use. The whole purpose of frameworks like this one is to make the generation of cryptographically random values easier. Aes.Create() is also used in the sample code

Additionally, the documentation describes Aes.Create() :

Creates a cryptographic object that is used to perform the symmetric algorithm.

This library is maintained by Microsoft, I think it is safe to say their values are "safe" to use.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM