RE: Reading from standard input

2005-08-29 Thread Steven Reddie
PM To: openssl-users@openssl.org Subject: Re: Reading from standard input Thanks people, Yeah I think the end of line was the key. After reading your posts I realised that I needed this: echo "mytext" | openssl dgst -md5 Anyway, I don't know why I got different hashes: Using openss

Re: Reading from standard input

2005-08-29 Thread Rich Salz
> Anyway, I don't know why I got different hashes The newline that echo adds. Try echo -n 1122 | openssl dgst -md5 -- Rich Salz Chief Security Architect DataPower Technology http://www.datapower.com XS40 XML Security Gateway http://www.datapower.com/products/xs40

Re: Reading from standard input

2005-08-29 Thread Victor Duchovni
On Mon, Aug 29, 2005 at 11:00:33PM -0500, Roberto Arias Alegria wrote: > Thanks people, > > Yeah I think the end of line was the key. After reading your posts I > realised that I needed this: > echo "mytext" | openssl dgst -md5 > > Anyway, I don't know why I got different hashes: > > Using open

Re: Reading from standard input

2005-08-29 Thread Joshua Juran
On Aug 30, 2005, at 12:00 AM, Roberto Arias Alegria wrote: Yeah I think the end of line was the key. After reading your posts I realised that I needed this: echo "mytext" | openssl dgst -md5 Anyway, I don't know why I got different hashes: Using openssl: echo "1122" | openssl dgst -md5 01ebe

Re: Reading from standard input

2005-08-29 Thread Roberto Arias Alegria
Thanks people, Yeah I think the end of line was the key. After reading your posts I realised that I needed this: echo "mytext" | openssl dgst -md5 Anyway, I don't know why I got different hashes: Using openssl: echo "1122" | openssl dgst -md5 01ebeaafc334e503f4acc94a18df9fa5 and using MySQL:

Re: Reading from standard input

2005-08-29 Thread Victor Duchovni
On Mon, Aug 29, 2005 at 06:42:07PM -0500, Roberto Arias Alegria wrote: > Hello new around here, > > I'm just new to OpenSSL and I'd like to calculate a MD5 digest, I used > the command > > openssl dgst -md5 file.txt > > and I got a digest of the file, but I want a digest of what is > *inside* t

RE: Reading from standard input

2005-08-29 Thread Steven Reddie
Your question doesn't make much sense. A "digest of the file" is exactly the same as "a digest of what is *inside* the file". If you mean that you want a digest of a particular portion of the contents of the file then you'll need to extract that yourself. -Original Message- From: [EMAIL

Re: Reading from standard input

2005-08-29 Thread Ignacio Butler
you can use the md5sum command... $md5sum file.txt On 8/29/05, Roberto Arias Alegria <[EMAIL PROTECTED]> wrote: > Hello new around here, > > I'm just new to OpenSSL and I'd like to calculate a MD5 digest, I used > the command > > openssl dgst -md5 file.txt > > and I got a digest of the file, b