Hi Jeff I was able to work out another solution for that as follows through a shell script which takes the string from the command line:
/**************************\ /sbin/grub --batch --device-map=/dev/null <<EOF \ grep "^Encrypted: " | sed 's/^Encrypted: //' md5crypt $1 quit EOF /**************************\ All the same, thanks for your suggestion; I will try it too. Regards, Karan Saberwal ----- Original Message ----- From: "Jeff Sheinberg" <[EMAIL PROTECTED]> To: "Karan Saberwal" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, March 25, 2004 1:20 AM Subject: Re: grub-md5-crypt question > Karan Saberwal writes: > > > I have been trying to generate a script which will generate the md5 hash for > > a string taken as input from the command line. > > I use the openssl passwd command for this purpose, eg, > > $ openssl passwd -1 secret > $1$Ia9cLJGU$q2Hj95gf4d8PFHRLKXFxz1 > > on my Debian system, the man page can be accessed thusly, > > $ man 1ssl passwd > > -- > Jeff Sheinberg > > _______________________________________________ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub
