diff --git a/lib/src/ssh_transport.dart b/lib/src/ssh_transport.dart index d66a245..0ce524f 100644 --- a/lib/src/ssh_transport.dart +++ b/lib/src/ssh_transport.dart @@ -31,7 +31,7 @@ typedef SSHPrintHandler = void Function(String?); /// Function called when host key is received. /// [type] is the type of the host key, For example 'ssh-rsa', -/// [fingerprint] md5 fingerprint of the host key. +/// [fingerprint] SHA256 fingerprint of the host key. typedef SSHHostkeyVerifyHandler = FutureOr Function( String type, Uint8List fingerprint, @@ -1180,7 +1180,7 @@ class SSHTransport { _sessionId ??= exchangeHash; _sharedSecret = sharedSecret; - final fingerprint = MD5Digest().process(hostkey); + final fingerprint = SHA256Digest().process(hostkey); if (_hostkeyVerified) { _sendNewKeys();