Re: MD5 Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



That's true... but that's not the reason that grub-md5-crypt doesn't
match it.  grub-md5-crypt produces a password hash in *exactly* the same
format at you would find in /etc/shadow... salted and the whole nine
yards.

If you want a non-interactive command line version of grub-md5-crypt, do
something like this:

echo -n "string" | grub-md5-crypt 2> /dev/null | grep -v Password:

Joshua



On Mon, Mar 15, 2004 at 09:44:54AM -0500, Brian Long wrote:
> echo -n "string" | md5sum
> 
> echo normally appends a \n, so you need to tell it not to do that.
> 
> /Brian/
> 
> On Fri, 2004-03-12 at 08:34, Karan Saberwal wrote:
> > Hi all
> > 
> > I am having the following problem :
> > 
> > I want to take a string from a user and generate an MD5 hash for it . The
> > cmd line utility "md5sum" does it for files etc , but I got a hash by giving
> > :
> > 
> > $echo "string" | md5sum
> > 
> > The problem is that this string does not generate the same hash as that
> > generated by GRUB .
> > 
> > Since anaconda prompts for the boot-loader password during installation , I
> > tried to trace the module for generating the MD5 hash .But I am unable to
> > 
> > find it . Could someone please throw some light on it ?
> > 
> > Karan
> > 
> > 
> > 
> > _______________________________________________
> > Anaconda-devel-list mailing list
> > Anaconda-devel-list@xxxxxxxxxx
> > https://www.redhat.com/mailman/listinfo/anaconda-devel-list
> -- 
>        Brian Long                      |         |           |
>        Americas IT Hosting Sys Admin   |       .|||.       .|||.
>        Cisco Linux Developer           |   ..:|||||||:...:|||||||:..
>        Phone: (919) 392-7363           |   C i s c o   S y s t e m s
> 
> 
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

-- 
Joshua Jensen <jjensen@xxxxxxxxx>
Work:  919 392 1488  Mobile: 919 454 9679  Fax: 919 392 7377
Pager: 866 264 2691  Epage: jjensen@xxxxxxxxxxxxxxx
IBM Linux Architect - RHCE, RHCT, etc
"If God didn't want us to eat animals, why did he make them out of meat?"



[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux