feat: Encode password
All checks were successful
/ pre-commit (push) Successful in 1m14s

Fixes #38.

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2025-10-02 07:06:54 +02:00
commit de24146991
Signed by: jriou
GPG key ID: 9A099EDA51316854
7 changed files with 42 additions and 20 deletions

View file

@ -82,7 +82,7 @@ Return content of a note encrypted by the given encryption key.
Return content of a protected note encrypted by the given encryption key.
Body (JSON):
* **password** (string): password used to protect the note (required)
* **password** (string): base64 encoded password used to protect the note (required)
### GET /api/note/\<id\>
@ -97,7 +97,7 @@ Return content of a protected note.
If the note is encrypted, the encrypted value is returned (application/octet-stream). Otherwise, the text is returned (text/plain).
Body (JSON):
* **password** (string): password used to protect the note (required)
* **password** (string): base64 encoded password used to protect the note (required)
### Errors