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
> 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
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
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
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:
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
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
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