jgrugru / encrypto-env Goto Github PK
View Code? Open in Web Editor NEWEasily setup your Python .env file with encryption.
License: MIT License
Easily setup your Python .env file with encryption.
License: MIT License
My .env file is not encrypted. When running the -l option, the output looks like this:
ROUTER_PASSWORD
SESSION_LOG_PATH
I am trying to encrypt the contents of .env file, which has 10 environment variables, one of which is around 100 characters long. I am receiving this error when running the command
encryptoenv -E
I'm trying to test if I can securely store my db credentials using this lib. This is my code
from encryptoenv.EnvFile import EnvFile
from os import environ
EnvFile().create_environment_variables()
print(environ["DB_USERNAME"])
print(environ["DB_PASSWORD"])
When I try to run the code it give me this output:
Traceback (most recent call last):
File "/home/carlos/os_test.py", line 5, in <module>
EnvFile().create_environment_variables()
File "/home/carlos/.local/lib/python3.10/site-packages/encryptoenv/EnvFile.py", line 75, in create_environment_variables
self.set_environment_variable(
File "/home/carlos/.local/lib/python3.10/site-packages/encryptoenv/EnvFile.py", line 71, in set_environment_variable
environ[variable[0]] = variable[1]
IndexError: list index out of range
I already create the variables using encryptoenv CLI
$ encryptoenv -l
DB_USERNAME
DB_PASSWORD
DB_NAME
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.