[H-GEN] md5sum generation
Rick Phillips
rickp at suntech.net.au
Mon Mar 27 01:39:52 EST 2006
> > I know I cannot generate a checksum by doing -
> >
> > md5sum password
> >
> > but I can generate at checksum on a file containing the single password.
> > Doing it this way would be tedious and would lead to errors.
>
> Either of these commands given to bash:
>
> echo "password" | md5sum
> md5sum <<<"$password"
>
> will do it on a single line, if that is what you
> want.
Thanks Russell but these two lines don't give a result consistent with
the database.
If I create a text file with blahblah in it and run "md5sum textfile", I
get 42d388f8b1db997faaf7dab487f11290
If I run either of the other two examples, I get
7ec306b6fa01510ffc4e0d0fac97c23e (I assume the "$" above is a typo as
this gives yet another result.
Problem is that the only result which matches a test database entry is
the first one done on a file containing the password.
I don't really understand why the results are different but I need to
make this work properly.
Rick
More information about the General
mailing list