Hii all,
$di->set('crypt', function ()use($config)
{
$crypt = new Crypt(); $crypt->setKey($config->application->cryptSalt); return $crypt; }
);
i set di
and on my form
<input type="hidden" name="bid" class="bid" value="<?php echo $a = $this->crypt->encrypt($object->getid());?>"/>
its okey when i decrypt $a but when i want to jquery post via form serialize couldnt decrypt