Archive for category Business News

Password crypt Perl

Um ein passwort zu vercrypten, kann man in Perl so etwas machen:

perl -le '
my @salt = ("a".."z","A".."Z",0..9,".","/");
my $salt = $salt[rand @salt] . $salt[rand @salt];
print crypt shift, shift||$salt
' password xx

Das Programm nimmt ein oder zwei Argumente. Das erste Argument ist das
Passwort, das man vercrypten möchte, das zweite ist das “Salt” (ein zwei Zeichen langer String aus dem Zeichenvorrat [a-zA-z0-9./]).
Wenn kein Salt bereitstellst, wird ein zufaelliges generiert.

“Content Encoding” – nginx

I have NGINX running as proxy for accessing my applications that are running on a apache server.
One of the applications, a WBB3 forum is making me trouble :) . I got Content Encoding errors when
i try to login as administrator.

The solution is to add to nginx config file the line:

proxy_set_header Accept-Encoding “”;

Restart nginx and and the problem is gone.