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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:31:40+00:00 2026-05-30T02:31:40+00:00

I am using AES algorithm for encryption and decryption of password when the PasswordFormat

  • 0

I am using AES algorithm for encryption and decryption of password when the PasswordFormat is Encrypted for the asp.net membership system. If the format was Hashed i would generate unique salted value for each password and store it in a column in the table where password is stored. But for encryption it is different i am worrying about below

1

If i generate unique IV, Key for each password then i have to maintain them somewhere. Is this correct approach from point of security?

2

If i HardCode IV and Key in application configuration(web.config) file then there i will have to worry about what happens when any of the above pair changes? How should i handle this situation?

3

Give me your ideas for what i should do. i will put them here 🙂

  • 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-30T02:31:43+00:00Added an answer on May 30, 2026 at 2:31 am

    Answers:

    1. No, there is no need for a unique key per password – and it would not be useful as your key would have to be stored somewhere. You might as well store the password in that safe system.

    2. You should not store the key in the same system with the same access conditions as the password. This would make encrypted storage futile. You should put the key somewhere else protected against abuse, and perform the encryption within that system.

    You are much better off choosing a function such as PBKDF2 and store the result of that. Key management is a tricky thing and should not be choosen without a good idea on how to proceed (hire a professional if you go that way).

    Finally, the whole idea of an IV is that it protects plain text when the same key is used. You may set the IV to all zero’s if you have a key per plain text / cipher text pair. It is however the idea that you use a single key, stored somewhere save, and a random IV stored with the cipher text.

    As said, if you did not know this already, then your scheme is unsafe, because there are many other things to consider, and you probably didn’t.

    PS Microsoft has some ways to securily store keys in the system, you might want to search stackoverflow for that. I’m however not an expert regarding the MS API’s.

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

Sidebar

Related Questions

I am doing encryption and decryption using AES Algorithm with bouncy castle My encryption
I'm doing password based file encryption in Java; I'm using AES as the underlying
I'm implementing encryption / decryption using Java Cipher and AES. Everything is working well
How to perform 256 Bit AES Encryption (Using Rijndael algorithm). Requirement: I have implemented
I want to use CBC mode encryption for the message using AES algorithm (AES
I am using AES 256 to encrypt/decrypt some plain text. But the algorithm uses
I want to do AES CBC encryption in Java. I'm using javax.crypto . After
Using ASP.NET MVC there are situations (such as form submission) that may require a
I am using AES to accomplish symmetric-key encryption. I store the Key in a
I have a char* string that I have encoded using AES encryption. This string

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.