An open API service indexing awesome lists of open source software.

https://github.com/efe/django-fernet-secrets


https://github.com/efe/django-fernet-secrets

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# django-fernet-secrets

A package to simplify secret management for Django projects. Instead of encyrpting every "secret" with a different encryption key, this package encyrpts all secrets with a single master key.

## Getting Started

### Generate the encryption_key

```python
python manage.py generate_encryption_key --env production
```

### Encrypt Text

```python
python manage.py encrypt_text --text sk_live_....YMUIqfIrsz --env production
```

### Usage

```
# settings.py

STRIPE_KEY = decrypt_secret_credential("....")
```