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));
    }
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));
    }
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 ) ) ; }
Encrypts a text returning the result as a base64 string

@param mixed      $text
@param null|mixed $key
@param mixed      $safe
Encrypts a text returning the result as a base64 string