You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2015/12/28 19:27:27 UTC
svn commit: r1721976 - in /httpd/httpd/branches/2.4.x/docs/manual/misc:
password_encryptions.xml password_encryptions.xml.fr
Author: covener
Date: Mon Dec 28 18:27:27 2015
New Revision: 1721976
URL: http://svn.apache.org/viewvc?rev=1721976&view=rev
Log:
Merge r1721975 from trunk:
PR58764: python example for sha1 password hashes
Submitted By: Dave Hall <skwashd gmail.com>
Modified:
httpd/httpd/branches/2.4.x/docs/manual/misc/password_encryptions.xml
httpd/httpd/branches/2.4.x/docs/manual/misc/password_encryptions.xml.fr
Modified: httpd/httpd/branches/2.4.x/docs/manual/misc/password_encryptions.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/misc/password_encryptions.xml?rev=1721976&r1=1721975&r2=1721976&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/misc/password_encryptions.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/misc/password_encryptions.xml Mon Dec 28 18:27:27 2015
@@ -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>
Modified: httpd/httpd/branches/2.4.x/docs/manual/misc/password_encryptions.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/misc/password_encryptions.xml.fr?rev=1721976&r1=1721975&r2=1721976&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/misc/password_encryptions.xml.fr (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/misc/password_encryptions.xml.fr Mon Dec 28 18:27:27 2015
@@ -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ées)</title>