function decryptText($input)
{
    global $IV, $key;
    $aes = new AES($input, $key, 256);
    $aes->setIV(base64_decode($IV));
    $aes->setMode(AES::M_CBC);
    return $aes->decrypt();
}