Skip to main content

encryptPassword

@quik/core


@quik/core / encryptPassword

Function: encryptPassword()

encryptPassword(password, saltSize?): string

Defined in: utils/Crypto.ts:15

Method used to encrypt a password using the hash function from bcryptjs.

Parameters

password

string

The password to be encrypted.

saltSize?

number = 10

The size of the salt.

Returns

string