PHP Classes

Rot13 Check

Recommend this page to a friend!

      securepwd  >  All threads  >  Rot13 Check  >  (Un) Subscribe thread alerts  
Subject:Rot13 Check
Summary:added line to check for simple cipher
Messages:1
Author:Nils Hitze
Date:2007-11-08 11:44:52
 

  1. Rot13 Check   Reply   Report abuse  
Picture of Nils Hitze Nils Hitze - 2007-11-08 11:44:52
I added a block to check if password is only rot13 of baseword, which wouldn't been very secure in my opinion.

Just add this:

// Check for only numbers
if(($password) == str_rot13($this->baseword)) {
$ok = false;
$this->result[] = $password." is only rot13 of ".$this->baseword;
} else {
$this->result[] = $password." is not rot13 of ".$this->baseword;
}

after this (in line 155):
}else
$this->result[] = $password." has more than ".$this->lessthan." characters";