md5 hash von Excel in MySql Datenbank

Patrick Matthäi patrick at linux-dev.org
Wed Mar 11 14:54:54 CET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Vitali Vitaliev schrieb:
> Ich muß aus einer großen Excel-Tabelle die Felder "Username" und
> "Passwort" in eine MySql Datenbank bringen. Das Passwortliste habe ich
> unter Linux mittels Bashbefehl "#pwgen >> make_passwd.txt" erstellt.
> 
> Jetzt muß ich "nur" noch die passenden und MySql kompatiblen Hashes
> ersetellen. Ein "#echo "Passwortx" | md5sum >> md5_hashes.txt" ist zwar
> erfolgreich, jedoch passen die erstellten Hashes für MySql. Hat jemand
> einen Tip für mich?

Ich schätze das sollte heissen, dass der Hash "nicht" passt? Das dürfte
daran liegen, weil echo noch ein newline ("\n") ausgibt und das von
md5sum berücksichtigt wird.

Um das zu fixen einfach echo -n "foobar"|md5sum benutzen.

- --
/*
Mit freundlichem Gruß / With kind regards,
Patrick Matthäi

E-Mail: patrick at linux-dev.org

Comment:
Always if we think we are right,
we were maybe wrong.
*/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkm3wq4ACgkQ2XA5inpabMfUiwCffoKis9Uk8TqLLrIsYdi7GrpU
rBMAniadlnknsKtdKmG93lfNjOqW5eUm
=sj/i
-----END PGP SIGNATURE-----



More information about the Linux mailing list