[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sha256sum --text generating blank spaces and hyphens?



Hello,

On Wed, Apr 26, 2023 at 08:30:01PM +0000, Albretch Mueller wrote:
> On 4/26/23, Dan Ritter <dsr@randomstring.org> wrote:
> > The only characters used in the sha256 hash itself are [a-f] and
> > [0-9]
> 
>  Yes, I knew that; that is why I could not understand why sha256sum
> was being "courteous" to me.

The man page is very clear on what the output will be, and just
running it on a few files should also make it obvious to you, also,
all the other sha*sum and md5sum utilities work pretty much the same
way. So I don't know why this comes as a surprise, but OK.

>  OK, now I see why cutting off the string on the first space that
> appears is safe. I never saw such cases because I always used sha*sums
> on files.

But it does the same thing with files…

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting


Reply to: