this post was submitted on 08 Aug 2025
        
      
      30 points (94.1% liked)
      Cybersecurity
    8567 readers
  
      
      61 users here now
      c/cybersecurity is a community centered on the cybersecurity and information security profession. You can come here to discuss news, post something interesting, or just chat with others.
THE RULES
Instance Rules
- Be respectful. Everyone should feel welcome here.
 - No bigotry - including racism, sexism, ableism, homophobia, transphobia, or xenophobia.
 - No Ads / Spamming.
 - No pornography.
 
Community Rules
- Idk, keep it semi-professional?
 - Nothing illegal. We're all ethical here.
 - Rules will be added/redefined as necessary.
 
If you ask someone to hack your "friends" socials you're just going to get banned so don't do that.
Learn about hacking
Other security-related communities !databreaches@lemmy.zip !netsec@lemmy.world !securitynews@infosec.pub !cybersecurity@infosec.pub !pulse_of_truth@infosec.pub
Notable mention to !cybersecuritymemes@lemmy.world
        founded 2 years ago
      
      MODERATORS
      
    you are viewing a single comment's thread
view the rest of the comments
    view the rest of the comments
I don't think many places encrypt/hash email addresses, but even if they did they could just apply the hash algorithm to what you entered to compare the hashes.
So ultimately hashing an email address could be a good thing, but its a matter of half measures. Sure, you can perform a basic hash before putting it in the database, but if we assume hashing is performed to prevent it being read by an attacker, why bother unless youre doing it properly?
Passwords, being more sensitive, should only be compared once finished being entered, so you can afford to run all the hashing, salting etc that is a requirement to keep the passwords safe.
If you were going to hash the email to the same standard, it becomes harder to retrieve and display, so when the user wants to look at their profile in the ui, you have to run an intense cryptographic algorithm just to display the email. Or if you want to contact the customer, or any other use for their email. Hence, people dont bother.
Hashing is completely irreversible. You cannot hash an email address and then unhash it. At most you can brute-force guess the email until the hash matches, but this is basically impossible.
Hashing the email address would break one of the main reasons to use an email address - the ability to send emails to users.
Encrypting email addresses is fine, but you wouldnt compare the encrypted data, you'd just decrypt and compare the original email address.
Man, youre totally right and I now feel embarassed i forgot that.