You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-07-03 08:02:31 +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
20 lines
331 B
PHP
20 lines
331 B
PHP
<?php
|
|
|
|
require_once('crypt.php');
|
|
require_once('dovecot_crypt.php');
|
|
|
|
|
|
|
|
|
|
|
|
$test = new DovecotCrypt('test');
|
|
$test->crypt('CRYPT');
|
|
echo "CRYPT:\n\n";
|
|
echo "Crypted: ".$test->get()."\n";
|
|
if ($test->verify('CRYPT', $test->get())) {
|
|
echo "Varified: true\n";
|
|
} else {
|
|
echo "Varified: false\n";
|
|
}
|
|
echo "\n";
|
|
?>
|