Delete InsufficientPasswordHash_CryptoJS_fixed

file not used in qhelp
This commit is contained in:
smiddy007
2023-04-17 13:16:25 -04:00
committed by GitHub
parent e65daaae49
commit 36d7370998

View File

@@ -1,8 +0,0 @@
const crypto = require('crypto-js')
function hashPassword(email, password) {
var algo = crypto.algo.PBKDF2.create()
algo.update(password, 'utf-8') // GOOD
algo.update(email.toLowerCase(), 'utf-8')
var hash = algo.finalize()
return hash.toString(crypto.enc.Base64)
}