Merge pull request #8630 from nextcloud/ldap-cachekey-sha256

use hash algo that's robust against collisions
This commit is contained in:
Joas Schilling 2018-03-05 12:34:07 +01:00 committed by GitHub
commit c85c64c787
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@ class Connection extends LDAPUtility {
if(is_null($key)) {
return $prefix;
}
return $prefix.md5($key);
return $prefix.hash('sha256', $key);
}
/**

View File

@ -163,7 +163,7 @@ abstract class Proxy {
if($key === null) {
return $prefix;
}
return $prefix.md5($key);
return $prefix.hash('sha256', $key);
}
/**