View Single Post
  #7  
Old 2nd August 2011, 01:26
counterpoint counterpoint is offline
Junior Member
 
Join Date: Jan 2010
Posts: 21
Thanks: 1
Thanked 5 Times in 5 Posts
Default

Thanks. The code in ViMbAdmin only supports MD5:

PHP Code:
    public function hashPassword$scheme$password )
    {
        switch( 
$scheme )
        {
            case 
'md5':
                
$this['password'] = md5$password );
                break;

            case 
'plain':
                
$this['password'] = $password;
                break;

            default:
                die( 
'Invalid password hash scheme in models/Mailbox.php hashPassword()' );
        }

        return 
$this['password'];
    } 
I can easily modify it, except that the PHP crypt function has a great many variations, and I'm not clear how it should be called to get the desired result. (See http://php.net/crypt).
Reply With Quote