Merge pull request #8630 from nextcloud/ldap-cachekey-sha256
use hash algo that's robust against collisions
This commit is contained in:
commit
c85c64c787
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue