From 66d87babfaed05f37617fdbc924be6189d669472 Mon Sep 17 00:00:00 2001 From: muxator Date: Mon, 5 Nov 2018 22:45:00 +0100 Subject: [PATCH] doc: passwordHash does not contain a bcrypted password, but a salted sha512 sum The documentation was written on 2011-08-03: 31067f163f17: added a documentation for the database structure The implementation using sha512 instead of bcrypt was committed two days later, on 2011-08-10: ce1012438ef8: added setPublicStatus, getPublicStatus, setPassword and isPasswordProtected --- doc/database.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/database.md b/doc/database.md index 9f6126d63..2455cdc22 100644 --- a/doc/database.md +++ b/doc/database.md @@ -13,7 +13,7 @@ Contains all information about pads * **head** - the number of the latest revision * **chatHead** - the number of the latest chat entry * **public** - flag that disables security for this pad -* **passwordHash** - string that contains a bcrypt hashed password for this pad +* **passwordHash** - string that contains a salted sha512 sum of this pad's password ### pad:$PADID:revs:$REVNUM Saves a revision $REVNUM of pad $PADID