Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/src/ssh_transport.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool> Function(
String type,
Uint8List fingerprint,
Expand Down Expand Up @@ -1180,7 +1180,7 @@ class SSHTransport {
_sessionId ??= exchangeHash;
_sharedSecret = sharedSecret;

final fingerprint = MD5Digest().process(hostkey);
final fingerprint = SHA256Digest().process(hostkey);

if (_hostkeyVerified) {
_sendNewKeys();
Expand Down