mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Delete InsufficientPasswordHash_CryptoJS.js
not used in qhelp file
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
const crypto = require('crypto-js')
|
||||
function hashPassword(email, password) {
|
||||
var algo = crypto.algo.SHA512.create()
|
||||
algo.update(password, 'utf-8') // BAD
|
||||
algo.update(email.toLowerCase(), 'utf-8')
|
||||
var hash = algo.finalize()
|
||||
return hash.toString(crypto.enc.Base64)
|
||||
}
|
||||
Reference in New Issue
Block a user