diff --git a/adminer/include/xxtea.inc.php b/adminer/include/xxtea.inc.php index 476b937b..9e24c7a8 100644 --- a/adminer/include/xxtea.inc.php +++ b/adminer/include/xxtea.inc.php @@ -46,6 +46,7 @@ function encrypt_string($str, $key) { if ($str == "") { return ""; } + $key = array_values(unpack("V*", pack("H*", md5($key)))); $v = str2long($str, true); $n = count($v) - 1; $z = $v[$n]; @@ -78,6 +79,7 @@ function decrypt_string($str, $key) { if ($str == "") { return ""; } + $key = array_values(unpack("V*", pack("H*", md5($key)))); $v = str2long($str, false); $n = count($v) - 1; $z = $v[$n];