Skip to content

TypeScript API / laikacms/crypto / PASSWORD_CONSTANTS

Variable: PASSWORD_CONSTANTS ​

ts
const PASSWORD_CONSTANTS: object;

Security constants for password handling

Type Declaration ​

DUMMY_HASH ​

ts
readonly DUMMY_HASH: "$2a$12$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy" = '$2a$12$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy';

MAX_PASSWORD_LENGTH ​

ts
readonly MAX_PASSWORD_LENGTH: 1024 = 1024;

MIN_ROUNDS ​

ts
readonly MIN_ROUNDS: 12 = 12;
ts
readonly RECOMMENDED_ROUNDS: 14 = 14;

Released under the MIT License.