From 6440ba51b68acf2bd290bde12914412d898886ba Mon Sep 17 00:00:00 2001 From: Tracker-Friendly Date: Sun, 6 Aug 2023 17:17:28 +0000 Subject: [PATCH 1/2] Update 'APIDOCS.md' --- APIDOCS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/APIDOCS.md b/APIDOCS.md index 887e522..d02628b 100644 --- a/APIDOCS.md +++ b/APIDOCS.md @@ -1,6 +1,8 @@ # Burgernotes API docs Use the Burgernotes API to automate tasks, build your own client, and more! +Headers should be: "Content-type: application/json; charset=UTF-8" for all POSTs + ## Authentication POST - /api/signup - provide "username" and "password". From e8070b032396f1a4336f32a61908b2266bdc310c Mon Sep 17 00:00:00 2001 From: Tracker-Friendly Date: Sun, 6 Aug 2023 17:19:38 +0000 Subject: [PATCH 2/2] Update 'APIDOCS.md' --- APIDOCS.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/APIDOCS.md b/APIDOCS.md index d02628b..ffe0975 100644 --- a/APIDOCS.md +++ b/APIDOCS.md @@ -10,6 +10,14 @@ POST - /api/signup - provide "username" and "password". POST - /api/login - provide "username" and "password". To prevent the server from knowing the encryption key, password you provide in the request must be hashed with the argon2 algorithm. + +Parallelism should be 1 +Iterations should be 256 +Memory Allocated in bytes should be 512 +Length of Hash should be 32 bytes +The output should be in the encoded format, not the hashed format + + The salt should be the SHA-512 of the password. Password must be at least 14 characters, username must be under 20 characters and alphanumeric.