-
Notifications
You must be signed in to change notification settings - Fork 0
Data Encryption
Spera Alfredo Jeshoua edited this page May 14, 2025
·
5 revisions
Provides methods for password and SSH key encryption/decryption for sensitive data, like users passwords and VMs SSH Keys.
The .streamlit/secrets.toml file must have a valid Fernet cipher key that can be generated in two ways:
- In the terminal:
openssl rand -base64 32
- In the Python console:
>>> from cryptography.fernet import Fernet >>> Fernet.generate_key()
Fernet is used to encrypt/decrypt the passwords and SSH keys of the VMs (in the VM Table).
The fernet object is created in backend/fernet_encryption.py.
Bcrypt is used to encrypt/decrypt the passwords of the Users (in the User Table).
The bcrypt object is imported directly in the User model (backend/models/user.py).
- Official Streamlit Documentation
- Other Modules: