public static function decrypt($sValue, $sSecretKey, $migration = false)
    {
        if (empty($sValue)) {
            return "";
        }

        if (true === $migration) {
            $sSecretKey = substr($sSecretKey, 0, 30) . "\0\0";
        } else {
            $sSecretKey = substr($sSecretKey, 0, 32);
        }

        return rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $sSecretKey, base64_decode($sValue), MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND)), "\0");
    }