1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2025-07-29 22:41:11 +03:00

Fixed CRYPT

added CRAM-MD5


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@929 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
Valkum
2010-12-31 17:39:22 +00:00
parent 3c7d04e92a
commit 20e14ad664
2 changed files with 53 additions and 28 deletions

View File

@ -17,4 +17,16 @@ if ($test->verify('CRYPT', $test->get())) {
echo "Varified: false\n";
}
echo "\n";
$test2 = new DovecotCrypt('test2');
$test2->crypt('CRAM-MD5');
echo "CRAM_MD5:\n\n";
echo "Crypted: ".$test2->get()."\n";
if ($test2->verify('CRAM-MD5', $test2->get())) {
echo "Varified: true\n";
} else {
echo "Varified: false\n";
}
echo "\n";
?>