- sudo composer install
- phpunit --testdox-html tests.html tests
$password = "abz";
//kakuna instance
$encrypter = Ilpaijin\Encrypter\EncrypterFactory::make('kakuna');
$encryptedPassword = $encrypter->encrypt( $password );
var_dump($encryptedPassword);
$decryptedPassword = $encrypter->decrypt( $encryptedPassword );
var_dump($decryptedPassword);
//numeric instance
$encrypter = Ilpaijin\Encrypter\EncrypterFactory::make('numeric');
$encryptedPassword = $encrypter->encrypt( $password );
var_dump($encryptedPassword);
$decryptedPassword = $encrypter->decrypt( $encryptedPassword );
var_dump($decryptedPassword);
# /
phpunit -c ./tests/phpunit.xml tests
or
# /tests
phpunit