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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:21:17+00:00 2026-05-20T08:21:17+00:00

Various examples I’ve seen use AES/CBC/PKCS7Padding when I get a cypher instance. Obviously AES

  • 0

Various examples I’ve seen use “AES/CBC/PKCS7Padding” when I get a cypher instance. Obviously AES is the crypto algorithm, what is CBC? What are the pros and cons of various different padding approaches like PKCS7Padding?

I wish to use this to encrypt individual UDP packets end-to-end – any reason that would be unwise?

  • 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-20T08:21:17+00:00Added an answer on May 20, 2026 at 8:21 am

    As far as the CBC mode of operation is concerned, it is recommended to use it in place of ECB when possible. Especially on plain text encryption, or data that repeat a lot. (Network protocols obviously belong to this category)

    The ECB (Electronic Code Block) process each block independently. Thus identical blocks will be encrypted identically for each occurrence in the stream. With CCB (Cipher Block Chaining) the state of the previous block encryption is propagated, then identical block are coded with a different salt which makes the result differs from one to another occurrence of an identical block.

    On the padding thing. The objective is to be able to unambiguously remove the padding in the decrypt process. I did not go through the “why” one is better than an other, but I you can find some explanation in Niels Ferguson and Bruce Schneier book since they recommend PKCS padding or the 0x80 0x00 ... padding.

    Take care when using your AES over multiple languages and/or cryptographic librairies. In fact, implementations seem to differ a lot for that single algorithm. Sometimes, it’s just default parameters, sometimes there are no other parameters.

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

Sidebar

Related Questions

I've seen various examples use this and I'm curious to know, is it dangerous
For the last three days i am learning JPA by various examples, to change
Describe each mode. Give examples of protocols that implement the various modes of TCP/IP
I wonder if there are Ruby snippets for various design patterns you can use
In various examples found on the web fgetc() is used like this: FILE *fp
Can screen brightness changes be tested in the Android emulator? I've tried various examples
Well, the title/subject pretty much covers the issue. Using various examples and and the
I'm using various boolean flags in my tables, and from reading a bit about
I read various post's prior to this. but none of them seemed to work
I've looked on SO for examples of using Key Value Observing with an NSArray

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.