Wednesday, August 24. 2005crypt(1) for the command lineTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Comments (3)
man makepasswd makepasswd --crypt Comment (1)
Comments (3)
errrrr... htpasswd does use crypt(3)... just look at the source
Comments (3)
Comments (3)
since when perl’s crypt function does MD5 ?
Comments (3)
ultrotter@tie:~$ mkpasswd Password: dhLZQG46Xkh22 ultrotter@tie:~$ mkpasswd foo ordF1SZQML4fg ultrotter@tie:~$ mkpasswd -Hmd5 foo $1$aW1n20AJ$wZ3Uy/7vGQ3EkfWmQP5ou/ Strangely it seems to be included in the ‘whois’ package! ultrotter@tie:~$ dpkg -S `which mkpasswd` whois: /usr/bin/mkpasswd Comment (1)
I maintain the cvsd package which has a perl script that adds passwords to the repository. I use this:
sub cryptpasswd { my ($passwd) = @_; return crypt($passwd,join(’’,(’.’,’/’,0..9,’A’..’Z’,’a’..’z’)[rand 64,rand 64])); } Comment (1)
Eeeeh, if you don’t provide a salt to mkpasswd, it invents its own one.
$ mkpasswd -H md5 Password: $1$vyvIEQ/1$XPhpF5GY3kduYL10HoCS.. $ mkpasswd -H md5 Password: $1$wp5sbI/L$37lDLeMvZdR97Um2G8A4I0 Comment (1)
You can also use openssl:
$ openssl passwd Password: Verifying - Password: sWkTkGhy6oJy6 $ openssl passwd -1 Password: Verifying - Password: $1$x3u/FM/5$fyz246V2pgbrNGnVpNEJY0 Comment (1)
#!/usr/bin/perl srand (time()); my $randletter = “(int (rand(26)) + (int (rand(1) + .5) % 2 ? 65 : 97))”; my $salt = sprintf(“%c%c”, eval $randletter, eval $randletter); my $plaintext = shift; my $crypttext = crypt($plaintext, $salt); print “${crypttext}\n”; Maybe, it helps. Comment (1)
|
QuicksearchBlog AdministrationCategoriesComments about Paris VI - Der Freitag
Wed, 2010-08-18 03:11
about Elektroschrott
Wed, 2010-08-18 03:08
about Elektroschrott
Fri, 2010-08-13 01:12
about Elektroschrott
Fri, 2010-08-13 00:53
about Lebenszeichen
Wed, 2010-08-04 22:09
Ich wäre für die Gigabit Switc
he...
Das T60 rennt unter Lin
ux wie sonst was... habe selbs
t nen T60 und zwei R60.. [...]Comments ()
Show tagged entries6310
![]() öffnungszeiten ![]() öpnv ![]() admintipp ![]() aide ![]() akku ![]() alice ![]() alpgrüm ![]() alsa ![]() alturo ![]() ansagen ![]() anwalt ![]() apache ![]() arbeit ![]() arbeitsplatzrechner ![]() arcor ![]() artikelreihe ![]() augenarzt ![]() auto ![]() bahn ![]() bahnhof ![]() bank ![]() baumarkt ![]() berlin ![]() best-of-mailing-list ![]() bilder ![]() blasenentzündung ![]() blog ![]() blogsignal ![]() bluetooth ![]() blutzuckermessung ![]() bohrmaschine ![]() boot ![]() booten ![]() brille ![]() browser ![]() bts ![]() bugs ![]() bus ![]() callcenter ![]() chat ![]() citynightline ![]() clamav ![]() cnl ![]() cold call ![]() computer ![]() console ![]() cookies ![]() cron-apt ![]() dänemark ![]() datenschutz ![]() db ![]() dbag ![]() debian ![]() debian-english ![]() debugging ![]() deppen ![]() deutsche bahn ![]() deutschland ![]() dhl ![]() dienstleistung ![]() disco ![]() dns ![]() domain ![]() drivers ![]() dsl ![]() durchhilfe ![]() dvb-s ![]() ![]() e90 ![]() einkauf ![]() elektrik ![]() elektro ![]() englisch ![]() english ![]() entsorgung ![]() essen ![]() ethernet ![]() exchange ![]() exim ![]() exim4 ![]() exploit ![]() föhr ![]() fahrkarten ![]() fahrrad ![]() fdi ![]() fernsehen ![]() fernseher ![]() firewall ![]() firewalls ![]() firstdedicated ![]() flitterwoche ![]() foto ![]() fotos ![]() freenet ![]() freizeit ![]() fremdblog ![]() freunde ![]() fundsache ![]() geburtstag ![]() Template dropdownTechnorati |