A little project in Flask to store inputs encrypted and delete once someone looks at it.
Go to file
Andreas Zweili d98efbd528 Symlink the process-compose.yml for faster startup 2024-04-03 18:39:13 +02:00
src Try to cleanup the clean_input function 2023-12-29 21:41:22 +01:00
.envrc Remove unused code from .envrc 2024-04-03 17:42:03 +02:00
.gitignore Symlink the process-compose.yml for faster startup 2024-04-03 18:39:13 +02:00
LICENSE Initial commit 2023-12-29 13:50:13 +01:00
README.org Replace README with an org file 2023-12-29 18:36:10 +01:00
conftest.py Fix tests 2023-12-29 20:52:40 +01:00
flake.lock Add some stuff 2023-12-29 14:02:11 +01:00
flake.nix Symlink the process-compose.yml for faster startup 2024-04-03 18:39:13 +02:00
poetry.lock Add black as a dev dependencies 2023-12-29 19:59:12 +01:00
poetry.toml Add settings for poetry 2023-12-29 21:41:45 +01:00
pyproject.toml Add black as a dev dependencies 2023-12-29 19:59:12 +01:00
tests.py Remove unused import 2023-12-29 20:53:15 +01:00

README.org

sort-of-pastebin

A little project in Flask to store inputs encrypted and delete once someone looks at it.

Origin

This project was inspired by Snappass and was previously licensed under MIT.

Tests

POST http://localhost:8000
Accept: application/json
Content-Type: application/json

{
"ttl": 604800,
"password": "Foo"
}
{
  "key": "snappass448b8e2a34174c20a2e636f14e99f836~c85WYn1KjFtqpTVqYifHuQxvjhBTp0gF0W3fk4Z1oXc="
}

// POST http://localhost:8000
// HTTP/1.1 200 OK
// Server: gunicorn
// Date: Fri, 29 Dec 2023 17:12:27 GMT
// Connection: close
// Content-Type: application/json
// Content-Length: 101
// Request duration: 0.093294s
POST http://localhost:8000/get-secret
Accept: application/json
Content-Type: application/json

{
"key": "snappass448b8e2a34174c20a2e636f14e99f836~c85WYn1KjFtqpTVqYifHuQxvjhBTp0gF0W3fk4Z1oXc="
}
{
  "password": "Foo"
}

// POST http://localhost:8000/get-secret
// HTTP/1.1 200 OK
// Server: gunicorn
// Date: Fri, 29 Dec 2023 17:12:36 GMT
// Connection: close
// Content-Type: application/json
// Content-Length: 24
// Request duration: 0.052981s