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

Re: How to get sha256 digest for jessie, without a dist-upgrade?



On 08/10/2017 06:08 PM, Neo wrote:
> Hi folks
> 
> How to get sha256 digest for jessie, without a dist-upgrade?
>

I'd use sha256sum, but if you must use openssl, the version in
jessie-security has sha256.

> $ openssl version
> OpenSSL 1.0.1t  3 May 2016> $ echo test | sha256sum
> f2ca1bb6c7e907d06dafe4687e579fce76b37e4e93b7605022da52e6ccc26fd2  -
> $ echo test | openssl dgst -sha256
> (stdin)= f2ca1bb6c7e907d06dafe4687e579fce76b37e4e93b7605022da52e6ccc26fd2

Even though sha256 is not listed in the openssl output, it works if it
pass it to the command. try 'openssl list-message-digest-algorithms |
grep SHA256'. I'd think that 1.0.2 supports it, since 1.0.1 does.


Reply to: