Krikri::PluginHelpers::KnownHostsKey
KnownHostsKey - pure known_hosts-entry shaping (no I/O), so the hash_host behavior is unit-testable with plain strings.
Class methods
Ansible's hash_host_key (ansible.builtin.known_hosts): only
the entry being written gets hashed - the hostname field (after
the optional @cert-authority/@revoked marker) becomes ssh's
|1|<salt>|<hash>, where salt is 20 random bytes and hash is
HMAC-SHA1(salt, hostname), both base64. Hashing must never touch
other entries: ssh-keygen -H re-hashes the WHOLE file, so plain
entries added without hash_host: true (the param's real default
is false) would end up hashed too, diverging from Ansible's
byte output.