Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6882295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:14:08+00:00 2026-05-27T05:14:08+00:00

I was trying encryption/decryption with AES then I tried the CBC & ECB modes

  • 0

I was trying encryption/decryption with AES then I tried the CBC & ECB modes
I got the same encrypted output from all three ! is this how it goes?
it’s may not be wrong but I just don’t know what to expect . and what’s the point of having modes if they all produce the same cipher ? is it time or performance complexity ?

can you explain the difference between AES and its cipher modes ? what’s the default cipher mode ? or if you can give me any references cuz MSDN is not clear enough

thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:14:08+00:00Added an answer on May 27, 2026 at 5:14 am

    CBC and ECB modes are ways to use symmetric encryption algorithms when you are encrypting data that is larger than one block (128 bits in AES). So, if you are encrypting data that fits into one block then CBC and ECB modes will result in the same ciphertext (assuming you are using a null IV when using CBC mode). If you are encrypting data greater in size than one block, or you are using an IV that is not null, and you are seeing CBC and ECB encryptions of the same data come out the same, you’re doing something wrong in your code.

    This is explained very well in the Wikipedia entry.

    http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to perform encryption and decryption (Rijndael 256, ecb mode) in two different
I've been trying to get AES encryption and decryption working for some time in
I'm trying to encrypt/decrypt a string using 128 bit AES encryption (ECB). What I
I am trying to make a program that Encrypts data using AES, then encrypts
I am trying an encryption-decryption code in java. When I am trying to run
I am trying to improve my skills in encryption and decryption, but there are
I was trying to use XTEA encryption on NETMF using the code from blog
I'm trying to understand this comment from AES implementation code: /** * This program
I need to do simple single-block AES encryption / decryption in my Qt /
I'm trying to get simple encryption/decryption working with AesManaged, but I keep getting an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.