You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postfixadmin/scripts/snippets/crypt_test.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";
?>