c#
AES object key size
I'm doing a project which involves creating an application to encrypt data using AES algorithm. In the main function I create an AES object like this; Aes objAes = Aes.Create(); byte[] key = objAes.Key; byte[] IV = objAes.IV; As far as I've understood AES.Create() function automatically generates a key and an IV. Knowing that AES is a symmetric algorithm which uses 3 different key sizes:128 bit, 192 bit and 256 bit keys, in this case which kind of key it is creating? I mean what is the size of the key that the AES.Create() function is generating? Thanks!
You almost have the answer right under your nose! You already have a byte array for key from objAes.Key. If I am not mistaken, it should have a length of 32. So a 32 byte array is 256 bits. You can also check objAes.KeySize.
Related Links
Pass complex objects through javascript to a .Net Service
ThisAddin.Ribbon (Excel) is always null since installing VS2010 SP1
.NET setup project - Installing to a shared network drive
javascript Request.QueryString
relation between gridviews and formview in asp.net
WPF dynamically add rows of TextBoxes to Grid layout
Action delegate. How to get the instance that call the method
how to render image in view. value of image = byte[]. asp.net mvc
How to resolve a dependency inside a Ninject Module?
Filter sql server table rows using many filters
Is there a way to do a conditional check against whether your code is obfuscated in C#?
How do I convert a database object to int in C#?
How to interfere other windows program (with C#, C++ or Java)
Include Sharepoint WSP in TFS Build Definition
Path To Files Inside Content Folder (ASP.NET MVC)
Reports With XSL