[H-GEN] md5sum generation

Russell Stuart russell-humbug at stuart.id.au
Mon Mar 27 00:16:45 EST 2006


On Sun, 2006-03-26 at 23:57 -0500, rickp at suntech.net.au wrote:
> I am trying to bulk upload over 100 names to our newly installed Web
> Calendar and I need to generate md5sum'ed passwords.  Luckily in this case,
> all of the passwords are known but have to be converted before insertion
> into the database.
> 
> 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.






More information about the General mailing list