Re: [openssl-users] OpenSSL SHA algorithm

2017-12-26 Thread Swapnil Deshpande
Thanks all, this has been really helpful. On Tue, Dec 26, 2017 at 5:44 AM, Kurt Roeckx wrote: > On Mon, Dec 25, 2017 at 07:44:58PM -0800, Swapnil Deshpande wrote: > > Hi all, > > > > Noob here. I recently discovered that the "-sha1" and "-sha" flags

[openssl-users] OpenSSL SHA algorithm

2017-12-25 Thread Swapnil Deshpande
Hi all, Noob here. I recently discovered that the "-sha1" and "-sha" flags in the "openssl dgst" command produce different outputs. I thought those were the same algorithms but turns out they are not: $ echo -n "password" | openssl dgst -sha 80072568beb3b2102325eb203f6d0ff92f5cef8e $ echo -n "