1
0
Fork 0

wip(backend): Clarified ehash method comment

This commit is contained in:
joostdecock 2022-10-29 22:27:38 +02:00
parent 1f312c6548
commit b42f8bffb2

View file

@ -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')
/*