C#C
C#3y ago
Pokey

❔ AES-GCM Key Generation

Good evening!

I'd like to use AesGcm to encrypt data, but I need a good and safe way to generate the keys. Is it okay to use Aes aes = Aes.Create() and then aes.GenerateKey() and aes.GenerateIV() and then take the values from that and use them with AesGcm or is this not recommended for any reason?

Thanks!
Was this page helpful?