Help for this page

Select Code to Download


  1. or download this
       # Generate a Salt
       $fullname = "Users Name";
    ...
    
       # Use crypt to encrypt our password
       $passwd = crypt($password, $salt);
    
  2. or download this
    my $salt = join '', ('.', '/', 0..9, 'A'..'Z', 'a'..'z')[rand 64, rand
    + 64];
    my $passwd = crypt($password, $salt);