MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / getHash

Function getHash

packages/server/src/enterprise/utils/encryption.util.ts:32–35  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

30}
31
32export function getHash(value: string) {
33 const salt = bcrypt.genSaltSync(getPasswordSaltRounds())
34 return bcrypt.hashSync(value, salt)
35}
36
37export function compareHash(value1: string, value2: string) {
38 return bcrypt.compareSync(value1, value2)

Callers 3

resetPasswordMethod · 0.90
loginMethod · 0.90
encryptUserCredentialMethod · 0.90

Calls 1

getPasswordSaltRoundsFunction · 0.85

Tested by

no test coverage detected