If you set your php configuration to development values. like setting Error Reporting, .... the code give you the message that you want. this is the exeption:
PHP Warning: mcrypt_encrypt(): Key of size 11 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /home/aboozar/www/zephir/test.php on line 4
PHP Stack trace:
PHP 1. {main}() /home/aboozar/www/zephir/test.php:0
PHP 2. Phalcon\Crypt->encrypt() /home/aboozar/www/zephir/test.php:4
PHP 3. mcrypt_encrypt() /home/aboozar/www/zephir/test.php:4
PHP Warning: mcrypt_decrypt(): Key of size 11 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /home/aboozar/www/zephir/test.php on line 5
PHP Stack trace:
PHP 1. {main}() /home/aboozar/www/zephir/test.php:0
PHP 2. Phalcon\Crypt->decrypt() /home/aboozar/www/zephir/test.php:5
PHP 3. mcrypt_decrypt() /home/aboozar/www/zephir/test.php:5
PHP Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Parameter 'text' must be a string' in /home/aboozar/www/zephir/test.php:5
Stack trace:
#0 [internal function]: Phalcon\Crypt->_cryptUnpadText(false, 'cbc', 32, 0)
#1 /home/aboozar/www/zephir/test.php(5): Phalcon\Crypt->decrypt('\xF8=J\xB0?\xA1\x8BWF\xD4r\xC9\xFC\r<...', 'le password')
#2 {main}
thrown in /home/aboozar/www/zephir/test.php on line 5