I got the following error when I try to save encrypted data into mysql table, the column type is varchar(200)
$crypto = new Phalcon\Crypt();
$crypto->setKey($securekey);
$member->password = $crypto->encrypt($password);
$member->update();
Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\x87 \xD7\xD7\xD3\xAC...' for column ...
bin2hex can convert the encrypted data to hex string and save into varchar column also.