C# RijndaelManaged 支持 128-256 位密钥,默认构造函数生成器的密钥大小是多少?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/281158/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
RijndaelManaged supports 128-256 bit key, what key size the default constructor generator?
提问by
For new RijndaelManaged(), the documentation says it supports keys of 128 bits and up to 256 bits.
对于 new RijndaelManaged(),文档说它支持 128 位和最多 256 位的密钥。
When you instantiate new RijndaelManaged(), it creates the Key and IV for you.
当您实例化 new RijndaelManaged() 时,它会为您创建 Key 和 IV。
What size does it default to, 128 bits?
它的默认大小是多少,128 位?
回答by leppie
The default key size is 256 bits, while the default blocksize is 128 bits.
默认密钥大小为 256 位,而默认块大小为 128 位。