Browse Source

Password hashes must be SHA-1 and in hex

I just wasted a surprising amount of time trying to figure out what the right format was for password hashes.  Just these few little clarifications would have helped.
nyaruka 12 years ago
parent
commit
d4cd98cc40
1 changed files with 6 additions and 2 deletions
  1. 6 2
      docs/configuration.rst

+ 6 - 2
docs/configuration.rst

@@ -85,11 +85,13 @@ configuration values are as follows.
 ``password``
 
   The password required for authentication to this HTTP server.  This
-  can be a cleartext password, or can be specified as a SHA hash if
+  can be a cleartext password, or can be specified as a SHA-1 hash if
   prefixed by the string ``{SHA}``.  For example,
   ``{SHA}82ab876d1387bfafe46cc1c8a2ef074eae50cb1d`` is the SHA-stored
   version of the password "thepassword".
 
+  Note that hashed password must be in hex format.
+
   *Default*:  No password required.
 
   *Required*:  No.
@@ -148,11 +150,13 @@ configuration values are as follows.
 ``password``
 
   The password required for authentication to this HTTP server.  This
-  can be a cleartext password, or can be specified as a SHA hash if
+  can be a cleartext password, or can be specified as a SHA-1 hash if
   prefixed by the string ``{SHA}``.  For example,
   ``{SHA}82ab876d1387bfafe46cc1c8a2ef074eae50cb1d`` is the SHA-stored
   version of the password "thepassword".
 
+  Note that hashed password must be in hex format.
+
   *Default*:  No password required.
 
   *Required*:  No.