diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-03-02 16:26:36 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-03-02 16:26:36 +0100 |
commit | 04f7252fc47ecba9a9d65518d39a79a17254e0da (patch) | |
tree | 96a1a56d1a14088d2395e4af15e954e7dbd4d484 /apps/user_ldap | |
parent | ed239d72dc51b4b50eaec1ab8bbeb2e5cf6249b7 (diff) | |
download | nextcloud-server-04f7252fc47ecba9a9d65518d39a79a17254e0da.tar.gz nextcloud-server-04f7252fc47ecba9a9d65518d39a79a17254e0da.zip |
use hash algo that's robust against collisions
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/lib/Connection.php | 2 | ||||
-rw-r--r-- | apps/user_ldap/lib/Proxy.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php index d2d8bc7395e..53e1882bd65 100644 --- a/apps/user_ldap/lib/Connection.php +++ b/apps/user_ldap/lib/Connection.php @@ -218,7 +218,7 @@ class Connection extends LDAPUtility { if(is_null($key)) { return $prefix; } - return $prefix.md5($key); + return $prefix.hash('sha256', $key); } /** diff --git a/apps/user_ldap/lib/Proxy.php b/apps/user_ldap/lib/Proxy.php index dc8c6fc77cc..ab5434f9fe5 100644 --- a/apps/user_ldap/lib/Proxy.php +++ b/apps/user_ldap/lib/Proxy.php @@ -163,7 +163,7 @@ abstract class Proxy { if($key === null) { return $prefix; } - return $prefix.md5($key); + return $prefix.hash('sha256', $key); } /** |