use hash algo that's robust against collisions

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2018-03-02 16:26:36 +01:00
parent 6104a7043e
commit 962b046ab5
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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