public function encryptBase64($text, $key = null, $safe = false)
    {
        if ($safe === true) {
            return strtr(base64_encode($this->encrypt($text, $key)), '+/', '-_');
        }

        return base64_encode($this->encrypt($text, $key));
    }