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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:32:48+00:00 2026-05-26T12:32:48+00:00

I use AES encryption with the Rijndael class to encrypt passwords and then store

  • 0

I use AES encryption with the Rijndael class to encrypt passwords and then store it in a configuration file.

I know what is an Initialization Vector. I have read threads on SO (such as Should I use an initialization vector (IV) along with my encryption?) and the article on wikipedia.

However, there is one point I don’t get: as you need the same IV used in decryption as the one used during encryption, you are forced to store the IV with the encrypted text. What is then the benefit of using a unique IV for each encryption? If an attacker gets the encrypted text, he will also get the IV.

  • 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-26T12:32:48+00:00Added an answer on May 26, 2026 at 12:32 pm

    Suppose you have the same message in two places, both encrypted with the same key.

    The attacker finds out (somehow) what the plaintext is for one of those messages. If you’ve used the same IV in both cases, the attacker knows the plaintext of the other message too, because the cyphertext will be the same. If you’ve used a different IV (and the attacker doesn’t have the key) then the second message’s contents are still safe.

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

Sidebar

Related Questions

Use AES/Rijndael or any symmetric encryption. Encrypt the hidden value using itself as the
I have a question relating to the use of an Initialization Vector in AES
I'm trying to use AES encryption ( AES_ENCRYPT in MySQL) for user passwords but
I am using following way to encrypt user's passwords which is AES Encryption. I
I want to use AES encryption in my application. I have come across some
I receive data, and use aes or blowfish to encrypt it before saving it
I am trying to use larger block size for the AES Encryption: private static
I have written some (functional) AES encryption code using Java's built in encryption libraries,
I have written a BlackBerry app that uses AES encryption. I am trying to
I use following class to encrypt/decrypt my texts. http://code.google.com/p/iphonebits/source/browse/trunk/src/Encryption/NSData-AES.m?r=2 This works perfectly. But when

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.