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

Re: Suche sowas wie md5 aber nur 16-20 stellen ?



* Michelle Konzack <linux4michelle@freenet.de>:
> Am 2004-11-29 11:26:35, schrieb Andreas Kretschmer:
> > Hilft Dir das:
> > echo "bla" | md5sum | sed 's/^.\{16\}//'

> Der String sollte schon funktionsfähig bleiben...

Wo liegt dein Problem? md5 ist ein Hash, also ohnehin one-way. Wenn du
etwas /wie/ md5 willst, dann muss man doch annehmen, dass du ebenfalls
nur einen hash erstellen willst. Und das tut Andreas' Befehl
einwandfrei. Natürlich mit mehr Kollisionen als beim original MD5, das
ist nicht zu vermeiden, wenn der Hash kürzer wird.

Grüße, Felix

-- 
 | /"\   ASCII Ribbon   | Felix M. Palmen (Zirias)    http://zirias.ath.cx/ |
 | \ / Campaign Against | fmp@palmen.homeip.net      encrypted mail welcome |
 |  X    HTML In Mail   | PGP key: http://zirias.ath.cx/pub.txt             |
 | / \     And News     | ED9B 62D0 BE39 32F9 2488 5D0C 8177 9D80 5ECF F683 |

Attachment: signature.asc
Description: Digital signature


Reply to: