Commit a10f32ba authored by Eric Covener's avatar Eric Covener
Browse files

Merge r1721975 from trunk:

PR58764: python example for sha1 password hashes

Submitted By: Dave Hall <skwashd gmail.com>



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1721976 13f79535-47bb-0310-9956-ffa450edef68
parent 905dbd8f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -161,6 +161,12 @@
      Use the APR function: apr_sha1_base64
      </example>

      <example><title>Python</title>
      import base64<br />
      import hashlib<br />
      "{SHA}" + format(base64.b64encode(hashlib.sha1(password).digest()))
      </example>

      <example>
        <title>PostgreSQL (with the contrib/pgcrypto functions
               installed)</title>
+6 −0
Original line number Diff line number Diff line
@@ -174,6 +174,12 @@
      Utilisez la fonction APR : apr_sha1_base64
      </example>

      <example><title>Python</title>
      import base64<br />
      import hashlib<br />
      "{SHA}" + format(base64.b64encode(hashlib.sha1(password).digest()))
      </example>

      <example>
        <title>PostgreSQL (avec les fonctions contrib/pgcrypto
               install&eacute;es)</title>