to calculating a MAC for the encrypted value so that this
// value can be verified later as notkey, 0, $iv
);
if ($decrypted === false) {
throw new \Exception('Could not{
$payload = json_decode(base64_decode($payload), true);
// If the payload is notvalid JSON or does not have the proper keys set we will
// assume it is invalid and bail outof the routine since we will not be able
// to decrypt the given value.