forked from Ailur/burgernotes-server
Update APIDOCS.md
This commit is contained in:
parent
f78cef790e
commit
c474b62d16
10
APIDOCS.md
10
APIDOCS.md
|
@ -13,21 +13,29 @@ To prevent the server from knowing the encryption key, the password you provide
|
|||
|
||||
If you wish to change the user's password, set "changepassword" to "yes" and "newpass" to the new hash.
|
||||
|
||||
Some users use the legacy argon2id mode (by which i mean about 8), and to implement argon2id functionality, you hash like this:
|
||||
|
||||
Some users use the legacy argon2id mode (by which i mean about 8, so only implement if you feel like it), and to implement argon2id functionality, you hash like this:
|
||||
|
||||
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
|
||||
|
||||
Salt should be the SHA512 of the password
|
||||
|
||||
|
||||
(Yes i know this is really bad practice, guess why we are replacing it)
|
||||
|
||||
To test if SHA-3 or argon2 is used, just try the SHA-3 and if 422 gets returned try argon2.
|
||||
|
||||
(For the sake of all of us, change the password to the SHA-3 hash)
|
||||
|
||||
|
||||
Password should be at least 8 characters, username must be under 20 characters and alphanumeric.
|
||||
|
||||
If username is taken, error code 422 will return.
|
||||
|
|
Loading…
Reference in New Issue