RijndaelManaged supports 128-256 bit key, what key size the default constructor generator?

Blankman picture Blankman · Nov 11, 2008 · Viewed 10.7k times · Source

For new RijndaelManaged(), the documentation says it supports keys of 128 bits and up to 256 bits.

When you instantiate new RijndaelManaged(), it creates the Key and IV for you.

What size does it default to, 128 bits?

Answer

leppie picture leppie · Nov 11, 2008

The default key size is 256 bits, while the default blocksize is 128 bits.