SqPad/README.md
justine 135e1de827
Some checks failed
Rust-build / build (push) Has been cancelled
Update README.md
2024-07-31 14:05:20 +02:00

1.4 KiB

SqPad

A encrypted pastebin. Gives a webui where you can post text with a title, which can then be shared via a link. The server stores the text encrypted thanks to MagicCrypt using AES-256.

New : you can also send files.

Install

Juste compile and launch it in the same folder as "Files".

This is only for development, though.

Docker

Start by installing docker if need be, then:

docker compose up -f docker-compose.yml -d

Usage

Simply enter a note on the form on the main page. Once submitted, the note is encrypted using DES-256.

The note can be accessed via its individual link. Please keep in mind that the server does not store links; it only saves the name of the note (in cleartext) and its content (encrypted).

The link can be used via a browser normally; it can also be used with curl or wget. In that case, the note is stripped of all html (only the text of the note is displayed) to be used in scripts, etc.

For now, notes are kept forever until some admin manually removes them.

Warnings

The size of a post or upload is limited to 100MB. This value can be changed in the source code, see the end of the main function, at the bottom of src/main.rs.

TODO

Mettre à jour le dockerfile avec une crontab qui supprime les vieux fichiers, ou le faire dans le code. Ajouter dans la page la bonne commande curl pour uploader des fichiers.