https://github.com/cipherstash/pyconau2024-tutorial
Secure, break, and re-secure an encrypted data vault with Python And PostgreSQL
https://github.com/cipherstash/pyconau2024-tutorial
Last synced: 2 months ago
JSON representation
Secure, break, and re-secure an encrypted data vault with Python And PostgreSQL
- Host: GitHub
- URL: https://github.com/cipherstash/pyconau2024-tutorial
- Owner: cipherstash
- Created: 2024-11-15T14:28:22.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-06T04:24:53.000Z (3 months ago)
- Last Synced: 2025-03-24T01:17:57.930Z (3 months ago)
- Language: Python
- Homepage: https://2024.pycon.org.au/program/HBB3ST/
- Size: 67.4 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PyCon AU 2024 encrypted data vault tutorial
Code that accompanies the Monday November 25 tutorial [How to secure, break, and re-secure an encrypted data vault using Python and PostgreSQL](https://2024.pycon.org.au/program/HBB3ST/) at PyCon AU 2024
## Quickstart
Make sure you have these dependencies installed:
- Python
- git
- DockerThen run the app:
```bash
# Clone the repo
git clone https://github.com/cipherstash/pyconau2024-tutorial
cd pyconau2024-tutorial# Install dependencies
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt# Start the database
docker compose up -d# Setup the database schema and fake data
python init_db.py# Run the app
flask run --debug
```Now query the API:
```bash
# List all users
curl http://127.0.0.1:5000/users
```If you need to reset the database at any point, run:
```bash
python init_db.py
```## Development
To update dependencies:
```bash
# Make sure the virtualenv is activated
. .venv/bin/activate# Install the new dependency
pip install -U Flask-SQLAlchemy# Update requirements
pip freeze > requirements.txt
```