  | |  | MD5 Problem | MD5 Problem 2004-03-12 - By William Hooper
Back
Karan Saberwal said: > 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 .
Try "echo -n" so that echo doesn't add a newline.
-- William Hooper
-- Shrike-list mailing list Shrike-list@(protected) https://www.redhat.com/mailman/listinfo/shrike-list
Earn $52 per hosting referral at Lunarpages.
|
|
 |