We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ca347b commit 9bae1bdCopy full SHA for 9bae1bd
src/server/util/util.ts
@@ -91,10 +91,11 @@ export const generateTerms = () => {
91
}
92
93
// eslint-disable-next-line prefer-destructuring
94
-const ENCRYPTION_IV = process.env.ENCRYPTION_IV
+const ENCRYPTION_IV = process.env.ENCRYPTION_IV || 'default'
95
+const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY || 'default'
96
97
const algorithm = 'aes-256-cbc'
-const key = new Uint8Array(Buffer.from(process.env.ENCRYPTION_KEY, 'hex'))
98
+const key = new Uint8Array(Buffer.from(ENCRYPTION_KEY, 'hex'))
99
const iv = new Uint8Array(Buffer.from(ENCRYPTION_IV, 'hex'))
100
101
export function encrypt(text) {
0 commit comments