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

ENC_KEY / cryptography.fernet #1

Open
Wadia-007 opened this issue Apr 19, 2023 · 1 comment
Open

ENC_KEY / cryptography.fernet #1

Wadia-007 opened this issue Apr 19, 2023 · 1 comment

Comments

@Wadia-007
Copy link

Trying to run this django project but while running I'm not understanding what should be the value of ENC_KEY , from where I can generate that..!

Thanks

@Wadia-007 Wadia-007 changed the title ENC_KEY / cryptography l.fernet ENC_KEY / cryptography.fernet Apr 19, 2023
@blacklovertech
Copy link

The ENC_KEY in your Django project is likely an encryption key used for securing sensitive data. This key is usually a secret key that should not be shared or exposed publicly.

To generate an ENC_KEY, you can use a random secret key generator tool or a Python package like secrets. Here's an example of how to generate a secret key using secrets:

import secrets
enc_key = secrets.token_urlsafe(50)
print(enc_key)

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