This commit is contained in:
Adria Navarro 2023-06-12 17:31:08 +01:00
parent 551ca404b4
commit 2971dfba9d
1 changed files with 2 additions and 2 deletions

View File

@ -36,8 +36,8 @@ export function getSecret(secretOption: SecretOption): string {
return secret
}
function stretchString(string: string, salt: Buffer) {
return crypto.pbkdf2Sync(string, salt, ITERATIONS, STRETCH_LENGTH, "sha512")
function stretchString(secret: string, salt: Buffer) {
return crypto.pbkdf2Sync(secret, salt, ITERATIONS, STRETCH_LENGTH, "sha512")
}
export function encrypt(