• caglararli@hotmail.com
  • 05386281520

Can I store a salted hash (sha256) of an email in a user’s cookies? [migrated]

Çağlar Arlı      -    4 Views

Can I store a salted hash (sha256) of an email in a user’s cookies? [migrated]

I am working on a web app and need to have access to a user's salted hash email in middle-ware. The simplest way to do this, for me, would be a cookie. Since this is a salted sha256 hash, even if the cookie was stolen the hacker could not make out the actual email by comparison. Does this make it safe to implement such a system?