Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

then how to store & use the encryption key? #30

Open
erlangparasu opened this issue Nov 1, 2021 · 2 comments
Open

then how to store & use the encryption key? #30

erlangparasu opened this issue Nov 1, 2021 · 2 comments

Comments

@erlangparasu
Copy link

No description provided.

@erlangparasu erlangparasu changed the title then how to store the encryption key? then how to store & use the encryption key? Nov 1, 2021
@github-actions
Copy link

github-actions bot commented Nov 1, 2021

Thanks for raising the issue. Maintainer(s) will look into this shortly.

@KhalfaniW
Copy link

KhalfaniW commented Mar 18, 2024

One idea is to use an environment variable in the shell

example

import secureEnv from 'secure-env';
global.env = secureEnv({secret:process.env.ENV_PASSWORD});
console.log(global.env)

and run with

$ export ENV_PASSWORD=secretPassword943 
$ code.js

 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants