Changeset 137

Show
Ignore:
Timestamp:
08/05/09 17:29:49 (13 months ago)
Author:
seanja
Message:

better encryption of the user's passwords

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/library/classes/suser.class.php

    r112 r137  
    261261                if(in_array($this->encryption, $this->encryptionTypes)) { 
    262262                        if($this->encryption == 'md5') { 
    263                                 $str = md5($str); 
     263                                $str = md5($str.md5($str)); 
    264264                        } 
    265265                        elseif($this->encryption == 'sha1'){ 
    266                                 $str = sha1($str); 
     266                                $str = sha1($str.sha1($str)); 
    267267                        } 
    268268                //$str = strtoupper($this->encryption) . "('$str')";