aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-03-02 16:26:36 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-03-02 16:26:36 +0100
commit04f7252fc47ecba9a9d65518d39a79a17254e0da (patch)
tree96a1a56d1a14088d2395e4af15e954e7dbd4d484 /apps/user_ldap
parented239d72dc51b4b50eaec1ab8bbeb2e5cf6249b7 (diff)
downloadnextcloud-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.php2
-rw-r--r--apps/user_ldap/lib/Proxy.php2
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);
}
/**