mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-04-27 02:28:48 +03:00
added some structure and tried to impelement CRYPT. Dovecots Version is here (crypt_generate() ) http://hg.dovecot.org/dovecot-1.2/file/84373d238073/src/auth/password-scheme.c Can someone help me with creating the lib? git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@928 a1433add-5e2c-0410-b055-b7f2511e0802
34 lines
441 B
PHP
34 lines
441 B
PHP
<?php
|
|
|
|
class Crypt {
|
|
|
|
/**
|
|
* @access private
|
|
*/
|
|
protected $plain = '';
|
|
|
|
/**
|
|
* @access private
|
|
*/
|
|
protected $password;
|
|
|
|
protected $size;
|
|
|
|
|
|
function __construct($plaintext) {
|
|
$this->plain = $plaintext;
|
|
}
|
|
|
|
/**
|
|
* @return true/false boolean
|
|
*/
|
|
public function crypt($algorithm) {
|
|
return true;
|
|
}
|
|
|
|
public function get() {
|
|
return $this->password;
|
|
}
|
|
|
|
|
|
} |