se PHP:

http://php.html.it/script/lista/60/protezione-password/

ciaux