mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-09 15:20:58 +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));
|
||||
return substr($base, 0, strlen($base)-1);
|
||||
case 'md5':
|
||||
return substr(chunk_split($RSAPublicKey, 2, ':'), 0, -1);
|
||||
return substr(chunk_split(md5($RSAPublicKey), 2, ':'), 0, -1);
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user