Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Crypt error

I am trying to decrypt a password using decryptBase64 but i got this error

Phalcon\Crypt\Exception: Size of IV is larger than text to decrypt

on my services.php i have

$di->set('crypt', function () use ($config) {
    $crypt = new Crypt();
    return $crypt;
}, true);

here is the code to decrypt


here is the code to encypt

self::$password     = $this->crypt->encryptBase64(self::$password);


owwww just figured it out,


was trying to decrypt the password which is not yet encrypted. So it should be