Specified which encryption to use

This commit is contained in:
Tracker-Friendly 2024-07-20 10:53:57 +01:00
parent 3b70fe7b4b
commit 55bec8e5f8
1 changed files with 3 additions and 3 deletions

View File

@ -98,13 +98,13 @@ POST - /api/listnotes - list notes, provide "secretKey"
note titles will have to be decrypted.
POST - /api/newnote - create a note, provide "secretKey" and "noteName"
"noteName" should be encrypted.
"noteName" should be encrypted using AES-256 GCM with the DONOTSHARE-password as the key and a random 16-byte IV.
POST - /api/readnote - read notes, provide "secretKey" and "noteId"
note content will have to be decrypted.
POST - /api/editnote - edit notes, provide "secretKey", "noteId", "title", and "content"
"content" should be encrypted.
"content" should be encrypted using AES-256 GCM with the DONOTSHARE-password as the key and a random 16-byte IV.
"title" is the first line of the note content, and should be encrypted.
POST - /api/removenote - remove notes, provide "secretKey" and "noteId"
@ -124,7 +124,7 @@ POST - /api/exportnotes - export notes, provide "secretKey"
note content and title will have to be decrypted
POST - /api/importnotes - import notes, provide "secretKey" and "notes"
note content should be encrypted and follow the /api/exportnotes format, in a marshalled json string
note content and title should be encrypted using AES-256 GCM with the DONOTSHARE-password as the key and a random 16-byte IV and follow the /api/exportnotes format, in a marshalled json string
POST - /api/sessions/list - show all sessions, provide "secretKey"