Skip to content

Commit 7cfd98e

Browse files
committed
Document alternative fingerprint types
1 parent 08a6c46 commit 7cfd98e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,11 @@ $fingerprint = $connection->fingerprint();
4444
if ($newConnection->fingerprint() != $fingerprint) {
4545
throw new Exception('Fingerprint does not match!');
4646
}
47+
```
48+
49+
If you wish, you can specify the type of fingerprint you wish to retrieve.
50+
51+
```php
52+
$md5Fingerprint = $connection->fingerprint(SSHConnection::FINGERPRINT_MD5); // default
53+
$sha1Fingerprint = $connection->fingerprint(SSHConnection::FINGERPRINT_SHA1);
4754
```

0 commit comments

Comments
 (0)