Lubimec13
Lubimec13
CC#
Created by Pokey on 3/19/2023 in #help
❔ AES-GCM Key Generation
Good evening! When it comes to cryptographic key generation, it's important to use a secure and reliable method to ensure the confidentiality and integrity of the data. In general, using the Aes.Create() method to generate an Aes object and then calling GenerateKey() and GenerateIV() to obtain the key and initialization vector (IV) can be a secure approach. However, it's important to make sure that the generated key and IV are sufficiently random and unpredictable, as this is crucial to the security of the encryption. If the key and IV generated by Aes.Create() are cryptographically secure, then using them with AesGcm is fine. However, if you have any doubts about the security of the key generation process or if you need to ensure higher levels of security, it's recommended to use a specialized key generation tool or library that is designed specifically for cryptographic purposes. Additionally, it's important to follow best practices when it comes to key management, such as storing the key securely and rotating it periodically, to ensure that the encryption remains secure over time. In summary, using Aes.Create() to generate an Aes object and calling GenerateKey() and GenerateIV() to obtain the key and IV can be a secure approach, as long as the generated values are sufficiently random and unpredictable. However, for higher levels of security, it's recommended to use specialized key generation tools and follow best practices for key management.
12 replies