mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-26 08:38:29 +00:00
RSA fingerprint: Fix missing md5
This commit is contained in:
parent
c46890b00c
commit
10d88c9c17
@ -1734,7 +1734,7 @@ class RSA
|
|||||||
$base = base64_encode($hash->hash($RSAPublicKey));
|
$base = base64_encode($hash->hash($RSAPublicKey));
|
||||||
return substr($base, 0, strlen($base)-1);
|
return substr($base, 0, strlen($base)-1);
|
||||||
case 'md5':
|
case 'md5':
|
||||||
return substr(chunk_split($RSAPublicKey, 2, ':'), 0, -1);
|
return substr(chunk_split(md5($RSAPublicKey), 2, ':'), 0, -1);
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user