Encrypted String length in c#
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I am using AES encryption in my application. I used 3 types of encryption AES-128,AES-192, AES-256 keysize. When I encrypt with different keysize(128 or 192 or 256) with the same text, the encrypted string length is same for all keysize(128 and 192 and 256) whereas encrypted characters only differs. Is this correct? Is the length of the encrypted string length always same for every keysize?
encryption
add a comment |Â
up vote
2
down vote
favorite
I am using AES encryption in my application. I used 3 types of encryption AES-128,AES-192, AES-256 keysize. When I encrypt with different keysize(128 or 192 or 256) with the same text, the encrypted string length is same for all keysize(128 and 192 and 256) whereas encrypted characters only differs. Is this correct? Is the length of the encrypted string length always same for every keysize?
encryption
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I am using AES encryption in my application. I used 3 types of encryption AES-128,AES-192, AES-256 keysize. When I encrypt with different keysize(128 or 192 or 256) with the same text, the encrypted string length is same for all keysize(128 and 192 and 256) whereas encrypted characters only differs. Is this correct? Is the length of the encrypted string length always same for every keysize?
encryption
I am using AES encryption in my application. I used 3 types of encryption AES-128,AES-192, AES-256 keysize. When I encrypt with different keysize(128 or 192 or 256) with the same text, the encrypted string length is same for all keysize(128 and 192 and 256) whereas encrypted characters only differs. Is this correct? Is the length of the encrypted string length always same for every keysize?
encryption
encryption
asked Sep 3 at 10:19
user61526
111
111
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
Yes, with most operating modes of AES, the length of the encrypted string is the same regardless of key size (128, 192 or 256 bits).
That's because AES-128, AES-192 and AES-256 all are 128-bit block ciphers, meaning they operate on 128-bit data blocks, regardless of key size. The key determines the mapping of 128-bit plaintext blocks to 128-bit ciphertext block, but the key size is independent of the block size.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
Yes, with most operating modes of AES, the length of the encrypted string is the same regardless of key size (128, 192 or 256 bits).
That's because AES-128, AES-192 and AES-256 all are 128-bit block ciphers, meaning they operate on 128-bit data blocks, regardless of key size. The key determines the mapping of 128-bit plaintext blocks to 128-bit ciphertext block, but the key size is independent of the block size.
add a comment |Â
up vote
4
down vote
Yes, with most operating modes of AES, the length of the encrypted string is the same regardless of key size (128, 192 or 256 bits).
That's because AES-128, AES-192 and AES-256 all are 128-bit block ciphers, meaning they operate on 128-bit data blocks, regardless of key size. The key determines the mapping of 128-bit plaintext blocks to 128-bit ciphertext block, but the key size is independent of the block size.
add a comment |Â
up vote
4
down vote
up vote
4
down vote
Yes, with most operating modes of AES, the length of the encrypted string is the same regardless of key size (128, 192 or 256 bits).
That's because AES-128, AES-192 and AES-256 all are 128-bit block ciphers, meaning they operate on 128-bit data blocks, regardless of key size. The key determines the mapping of 128-bit plaintext blocks to 128-bit ciphertext block, but the key size is independent of the block size.
Yes, with most operating modes of AES, the length of the encrypted string is the same regardless of key size (128, 192 or 256 bits).
That's because AES-128, AES-192 and AES-256 all are 128-bit block ciphers, meaning they operate on 128-bit data blocks, regardless of key size. The key determines the mapping of 128-bit plaintext blocks to 128-bit ciphertext block, but the key size is independent of the block size.
edited Sep 3 at 12:29
answered Sep 3 at 10:37
fgrieu
72.8k6149310
72.8k6149310
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcrypto.stackexchange.com%2fquestions%2f62002%2fencrypted-string-length-in-c%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password