From 7c9227b8eec7864e0f2978a78b22c59989a8899c Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Mon, 28 Dec 2015 18:27:27 +0000 Subject: [PATCH] Merge r1721975 from trunk: PR58764: python example for sha1 password hashes Submitted By: Dave Hall git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1721976 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/misc/password_encryptions.xml | 6 ++++++ docs/manual/misc/password_encryptions.xml.fr | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/docs/manual/misc/password_encryptions.xml b/docs/manual/misc/password_encryptions.xml index 63df11a8dc..e9acfe60a5 100644 --- a/docs/manual/misc/password_encryptions.xml +++ b/docs/manual/misc/password_encryptions.xml @@ -161,6 +161,12 @@ Use the APR function: apr_sha1_base64 + Python + import base64
+ import hashlib
+ "{SHA}" + format(base64.b64encode(hashlib.sha1(password).digest())) +
+ PostgreSQL (with the contrib/pgcrypto functions installed) diff --git a/docs/manual/misc/password_encryptions.xml.fr b/docs/manual/misc/password_encryptions.xml.fr index 05e54086f5..7667ecb057 100644 --- a/docs/manual/misc/password_encryptions.xml.fr +++ b/docs/manual/misc/password_encryptions.xml.fr @@ -174,6 +174,12 @@ Utilisez la fonction APR : apr_sha1_base64 + Python + import base64
+ import hashlib
+ "{SHA}" + format(base64.b64encode(hashlib.sha1(password).digest())) +
+ PostgreSQL (avec les fonctions contrib/pgcrypto installées) -- 2.40.0