You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php$crypt = new \Phalcon\Crypt();
$source = 'Life is much too short to be intoxicated';
$key = 'very secret key';
do {
$dest = $crypt->encryptBase64($source, $key, true);
} while (false === strpos($dest, '-'));
$copy = (string)$dest;
$crypt->decryptBase64($dest, $key, true);
echo$dest, PHP_EOL;
echo$copy, PHP_EOL;
?>
Expected result:$dest === $cat Sample actual result:
Test case:
Expected result:
$dest === $cat
Sample actual result:
-
is replaced with+
; but because$source
is not a reference it must not be modified.The text was updated successfully, but these errors were encountered: