From 4c01f2fa4933e71903e1c4935aebe957f1496101 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Tue, 12 Apr 2022 20:59:17 -0700 Subject: [PATCH] Updated hash method. --- lib/crypto.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/crypto.js b/lib/crypto.js index 4b56bbb2..c684f2d6 100644 --- a/lib/crypto.js +++ b/lib/crypto.js @@ -14,11 +14,11 @@ export function hash(...args) { } export function secret() { - return hash(process.env.HASH_SALT); + return hash(process.env.DATABASE_URL, process.env.HASH_SALT); } export function salt() { - return v5([secret(), ROTATING_SALT].join(''), v5.DNS); + return v5(hash(secret(), ROTATING_SALT), v5.DNS); } export function uuid(...args) {