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) {