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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:28:50+00:00 2026-05-28T17:28:50+00:00

Do you know if Devise is providing a feature to store the email hashed

  • 0

Do you know if Devise is providing a feature to store the email hashed in the database?

If this is the case, what are the drawback using this feature?

The two I can think of are:

  • will not be obviously possible to see the email on the edit “screen” (except the [theoretical] case where the email would be stored using symmetric encryption instead of the standard one).

  • if the salt is (for any reason) compromised and need to be changed, plan a recovery strategy would be a tough job (rather than just force the users to change the password at the next login). However, I think this is doable.

thanks,

  • 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-28T17:28:51+00:00Added an answer on May 28, 2026 at 5:28 pm

    Not quite answering the question, but I want to raise the point that you don’t want to hash the login value. Symmetric encryption, maybe. Salted? No.

    Why not? Your login system has to find the correct record for the person who is trying to log in. This means you have to hash/encrypt the value and compare with other hashed/encrypted values. A salt would kill chances of doing that in one go, and you’d have to run a table scan each time. Also, you would have nothing but probability to guarantee that two people’s logins don’t have a hash collision.

    Using a single salt for the entire application kills the whole purpose of a salt, so there is no reason for using one. However, if you wish to do so, then it solves the comparison problem.

    But you are still left with the problem that you can have collisions. The probability is low but nonzero, and as you get more users the Birthday Effect will come into play and you very well might get a problem.

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

Sidebar

Related Questions

I know you can do something like this: readlines(FileName) -> {ok, Device} = file:open(FileName,
I need to know how configure the gem devise,Im using ruby 1.9.2, rails 3.1.3,
Using Devise, I know how to protect controller actions from non-signed-in users through: before_filter
I'm using Devise in a Rails application, and I can set session data through
I'm using Devise and a user can either be an admin or not (true,
Using Devise, I would like to know if there is a way to remove
Does anyone know how I can get the phone number of the device I
As far as I know I can use C++ templates in CUDA device code.
I'm using PocketC on my Windows CE device, but I want to know where
How can I mock my location on a physical device (Nexus One)? I know

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.