Password tool

The goal is to create a webpage where users can reset their password.

Password Policy

  • Min 5 chars
  • Max 8 chars
  • When to change?
  • Check for weak passwords

Implementation

  • Apache SSL enabled webserver
  • PHP page

Documentation

Example

Example to create and check passwords.

<?php
 $user_input = "foo";
 $encrypted_password_unix = '$1$Pr6PI$MPwTVvKTjAhd.YFO2mGpQ.';
 $encrypted_password_crypt = 'G5GQLnYprjCeE';
 if (crypt($user_input, $encrypted_password_unix) == $encrypted_password_unix) {
   echo "Unix Password verified!\n";
 }
 if (crypt($user_input, $encrypted_password_crypt) == $encrypted_password_crypt) {
   echo "Crypt Password verified!\n";
 }
?>
vlir/projects/passwd.txt · Last modified: 2008/05/19 15:16 by rudy
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Run by Debian Driven by DokuWiki