瀏覽代碼

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 年之前
父節點
當前提交
d4cd98cc40
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      docs/configuration.rst

+ 6 - 2
docs/configuration.rst

@@ -85,11 +85,13 @@ configuration values are as follows.
 ``password``
 ``password``
 
 
   The password required for authentication to this HTTP server.  This
   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,
   prefixed by the string ``{SHA}``.  For example,
   ``{SHA}82ab876d1387bfafe46cc1c8a2ef074eae50cb1d`` is the SHA-stored
   ``{SHA}82ab876d1387bfafe46cc1c8a2ef074eae50cb1d`` is the SHA-stored
   version of the password "thepassword".
   version of the password "thepassword".
 
 
+  Note that hashed password must be in hex format.
+
   *Default*:  No password required.
   *Default*:  No password required.
 
 
   *Required*:  No.
   *Required*:  No.
@@ -148,11 +150,13 @@ configuration values are as follows.
 ``password``
 ``password``
 
 
   The password required for authentication to this HTTP server.  This
   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,
   prefixed by the string ``{SHA}``.  For example,
   ``{SHA}82ab876d1387bfafe46cc1c8a2ef074eae50cb1d`` is the SHA-stored
   ``{SHA}82ab876d1387bfafe46cc1c8a2ef074eae50cb1d`` is the SHA-stored
   version of the password "thepassword".
   version of the password "thepassword".
 
 
+  Note that hashed password must be in hex format.
+
   *Default*:  No password required.
   *Default*:  No password required.
 
 
   *Required*:  No.
   *Required*:  No.