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 7912437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:36:13+00:00 2026-06-03T13:36:13+00:00

We are using the below cipher AES/ECB/NOPADDING But I am little confused because modes

  • 0

We are using the below cipher

AES/ECB/NOPADDING

But I am little confused because modes like ECB need the input to be padded according to the block size.But here we say NOPADDING.Dont they look contradictory.

Can we have arbitrary data which is not padded as input to ECB mode.

  • 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-06-03T13:36:18+00:00Added an answer on June 3, 2026 at 1:36 pm

    The “raw” modes of ECB encryption with no padding applied like for example AES/ECB/NOPADDING, are basically the pure application of the encryption function to N blocks of data. They are useful for developers that need to implement custom modes that are not shipped by default. Any mode of operation is somehow constructed from the raw encryption function.

    Still, since a block cipher can only operate on full-length blocks, some form of padding has may have to be applied on the last block. This is left up to the developer, they will implement whatever form of padding is specified/recommended for the mode they wish to implement. There are many possibilities, and this is why we have “NOPADDING” – to leave the choice of padding up to us.

    These modes, XXX/ECB/NOPADDING, should never be used directly. Neither should any ECB mode, really. Plain ECB encryption is very insecure, for example it doesn’t hide statistical properties of the plaintext (you may know the examples where the “encrypted” image still looks much like the original). On top of that, as already noted, a block cipher can only operate on full-length blocks. This requires applying a custom padding scheme, which would add another layer where mistakes can be made as opposed to simply relying on some default implementation.

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

Sidebar

Related Questions

I am using below URL to show line chart but one thing I have
I am using below CAML query but when I run,it returns all data from
I am using below code to create three tab in activity but it gives
I am using below code where i don't want to use JPEGEncodedImage.encode because it
The code I'm using below suppose to switch system active input / writing language
I am using below code to query changes to users/OUs in AD. But it
Using below code I am trying to get result which should be like success
I using below code to insert new sms in inbox, but when i click
I am using below code to get uninstall package broadcast receiver but I don't
i am using below query to update my all records but it starts update

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.