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 in the > > "openssl dgst" command produce diff

Re: [openssl-users] OpenSSL SHA algorithm

2017-12-26 Thread Kurt Roeckx
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 in the > "openssl dgst" command produce different outputs. I thought those were the > same algorithms but turns out they are not: > > $ echo -n "pass

Re: [openssl-users] OpenSSL SHA algorithm

2017-12-26 Thread Dave Coombs
Hi, Wikipedia has some information. https://en.wikipedia.org/wiki/Secure_Hash_Algorithms What is produced by "dgst -sha" is what the above link is calling SHA-0 (originally just called SHA). All the best, -Dave > On Dec 25, 2017, at 22:44, Swapnil Deshpande > wrote: > > Hi all,

Re: [openssl-users] OpenSSL SHA algorithm

2017-12-25 Thread Dennis Clarke
On 25/12/17 10:44 PM, Swapnil Deshpande wrote: 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 80

[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 "