wip(backend): Clarified ehash method comment
This commit is contained in:
parent
1f312c6548
commit
b42f8bffb2
1 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,9 @@ export const clean = (email) => {
|
|||
return email.toLowerCase().trim()
|
||||
}
|
||||
|
||||
// Hashes an email address
|
||||
/*
|
||||
* Hashes an email address (or other string)
|
||||
*/
|
||||
export const ehash = (email) => createHash('sha256').update(clean(email)).digest('hex')
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue