public static function set(
        $key,
        $data,
        $expirate = 3600,
        $path = null,
        $domain = null,
        $secure = false,
        $http = true
    ) {
        $data = Crypto::encrypt($data);

        return setcookie(
            $key,
            $data,
            time() + $expirate,
            $path,
            $domain,
            $secure,
            $http
        );
    }