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

Categories

HOME
joomla
autohotkey
http
postgresql
mobile
xamarin.forms
intellisense
blob
glsl
x509certificate
squeak
ubuntu-14.04
query-string
crash
grid
collision-detection
runtime
ldap-query
react-select
openstack-horizon
loss
amazon-data-pipeline
novacode-docx
conditional-formatting
udeploy
summernote
cherrypy
gnu-screen
ng-tags-input
tftp
javapns
arp
ibm-bpm
openvms
gitosis
incapsula
wit-ai
jibx
ui-grid
wink
photoshop-script
androiddesignsupport
business-catalyst
google-scholar
alarmmanager
altova
cosign-api
csc
airwatch
sbt-proguard
wordpress-plugin
nslocalizedstring
updating
jain-sip
page-flipping
dpkt
sparkcore
glog
copy-on-write
skview
maven-archetype
mri
frisby.js
report-builder2.0
serializer
disabled-control
visual-c#-express-2010
sqldatasource
lastinsertid
code-complete
leap-year
bho
microsoft-speech-platform
feincms
junit-rule
shapado
android-memory
advanceddatagrid
cgaffinetransform
rjs
windows-xp-embedded
response-time
database-agnostic
browser-state
lts
unauthorized
jettison
stackless

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile