mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Don't print trailing '=' in ssh hostkey fingerprints (sha256)
This commit is contained in:
parent
9aebe62edb
commit
5ab1270cbc
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ end
|
|||
-- @param bits Key size in bits.
|
||||
fingerprint_base64 = function( fingerprint, hash, algorithm, bits )
|
||||
fingerprint = base64.enc(fingerprint)
|
||||
return ("%d %s:%s (%s)"):format( bits, hash, fingerprint, algorithm )
|
||||
return ("%d %s:%s (%s)"):format( bits, hash, fingerprint:match("[^=]+"), algorithm )
|
||||
end
|
||||
|
||||
--- Format a key fingerprint in Bubble Babble.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue