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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:33:01+00:00 2026-05-23T07:33:01+00:00

unfortunately, we’ve been requested to offer our users the ability to get an email

  • 0

unfortunately, we’ve been requested to offer our users the ability to get an email sent to their registered account, their password .. if they have forgotten their password.

“Click here if you have forgotten your password”

So – this means i need to be able to DECRYPT the password. I don’t like it, but that’s the requirements. I’m used to use a SALT and HASHING a password with SHA1. then storing the salt and the hashed password into the repository.

Not sure what I should be doing if I wish to store the password which can be decrypted now. Is it more or less the same, but I should use AES instead?

Would love some help (and preferably code samples in .NET).

Cheers!

NOTE: Please don’t turn this thread into a topic about HASHING vs DECRYPTING vs OpenAuth.

  • 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-23T07:33:02+00:00Added an answer on May 23, 2026 at 7:33 am

    You can do one of the following:

    1. Change the user’s password temporarily and email the user the new password, which he is required to change in the next login.
    2. Have a functionality to reset the password instead. It is quite similar to the first option, but instead you need to create a temporary token and send that to the user as a link.
    3. If you really, really need to encrypt the password and send it to the user over plaintext, then you need to find a good encryption scheme to protect the passwords while they’re in the database. You can simply create a random key or a derived key using Rfc2898DeriveBytes and then you can use AES combined with HMAC (for verification) to encrypt and store the password. Your application needs to be aware of this key to be able to decrypt the data, which is a security risk. Possibly you can store this key in the web.config file or something similar which should never be accessible from the outside and protect it using DPAPI or the RSAKeyContainer.

    If you go with option 1 or 2, you don’t need to be able to decrypt the password, so you can use a hash + salt, which will be the most secure method.

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

Sidebar

Related Questions

Unfortunately, for some reason I cannot fathom, I haven't been able to get windbg
Unfortunately I've got a bug that I have been working on for 1 full
Unfortunately, Im having to use radio buttons in a project. I cant get my
Unfortunately cabal-dev ghci does not work in this project, i get an error: Loading
Unfortunately, the iPhone cannot flag email messages for followups as it does in Outlook
Unfortunately our webmail client delivered from Oracle is not compliant with the new IE9.
unfortunately my settings do not get saved. please help If ColorDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then
Unfortunately I cannot reliably reproduce this error but infrequently I get it and occasionally
Unfortunately the names of these methods make terrible search terms, and I've been unable
Unfortunately, due to the limitations of our Unix Tru64 environment, I am unable to

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.