Why remove trailing padding from base64 encoded fingerprint?

Damien Miller djm at mindrot.org
Mon Sep 16 12:15:40 AEST 2019

On Wed, 11 Sep 2019, Mark Leonard wrote:

> From sshkey.c (line 925):
>         /* Trim padding characters from end */
>         ret[strcspn(ret, "=")] = '\0';
>         return ret;
> Why remove the trailing padding from the Base64 encoded key fingerprint?  I
> recognize that it's easy enough to re-pad the string, but I'm just curious
> why it's being removed in the first place.

Just to make the result more human readable.


More information about the openssh-unix-dev mailing list