diff options
author | 2021-08-14 19:13:46 +0200 | |
---|---|---|
committer | 2021-08-14 19:13:46 +0200 | |
commit | 26721219802be2ae9655943e610554a1b47eafbd (patch) | |
tree | d1cd5bf34ee9ef05ea07c35b8f77c39ddac2d4c2 /lib/crypt.js | |
parent | f6557f602f5124d5c90019cd90cf5257dbc00ef5 (diff) | |
download | my_apps-26721219802be2ae9655943e610554a1b47eafbd.tar.gz my_apps-26721219802be2ae9655943e610554a1b47eafbd.tar.bz2 my_apps-26721219802be2ae9655943e610554a1b47eafbd.zip |
copy to clipboard, icons, notes key
Diffstat (limited to 'lib/crypt.js')
-rw-r--r-- | lib/crypt.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypt.js b/lib/crypt.js index 4037c28..5d3d79e 100644 --- a/lib/crypt.js +++ b/lib/crypt.js @@ -1,6 +1,6 @@ const crypto = require('crypto') const algorithm = 'aes-256-ctr' -const secretKey = 'QZmGk0WwHMIhDaIsgSqwdnrPjPM3VwN1' +const secretKey = process.env.MYAPPS_NOTES_KEY export const encrypt = (text) => { const iv = crypto.randomBytes(16) |