mirror of https://github.com/Budibase/budibase.git
committed by
GitHub
19 changed files with 14622 additions and 66 deletions
File diff suppressed because it is too large
@ -0,0 +1,13 @@ |
|||
import bcrypt from "bcryptjs"; |
|||
|
|||
function hash(password) { |
|||
return bcrypt.hashSync(password, 10); |
|||
} |
|||
|
|||
function verify(hash, password) { |
|||
return bcrypt.compareSync(password, hash); |
|||
} |
|||
|
|||
export default { |
|||
hash, verify |
|||
}; |
|||
@ -1,5 +0,0 @@ |
|||
import {hash, verify} from "argon2"; |
|||
|
|||
export default { |
|||
hash, verify |
|||
}; |
|||
@ -1,5 +0,0 @@ |
|||
const {hash, verify} = require("argon2"); |
|||
|
|||
module.exports = { |
|||
hash, verify |
|||
}; |
|||
File diff suppressed because it is too large
Loading…
Reference in new issue