aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypt.js
diff options
context:
space:
mode:
authorGravatar piotrruss <mail@pruss.it> 2021-08-14 19:13:46 +0200
committerGravatar piotrruss <mail@pruss.it> 2021-08-14 19:13:46 +0200
commit26721219802be2ae9655943e610554a1b47eafbd (patch)
treed1cd5bf34ee9ef05ea07c35b8f77c39ddac2d4c2 /lib/crypt.js
parentf6557f602f5124d5c90019cd90cf5257dbc00ef5 (diff)
downloadmy_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.js2
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)