source/Core/Encryptor.php
public function encrypt($string, $key)
    {
        $string = "ox{$string}id";

        $key = $this->_formKey($key, $string);

        $string = $string ^ $key;
        $string = base64_encode($string);
        $string = str_replace("=", "!", $string);

        return "ox_$string";
    }
public function encrypt($string, $key)
    {
        $string = "ox{$string}id";

        $key = $this->_formKey($key, $string);

        $string = $string ^ $key;
        $string = base64_encode($string);
        $string = str_replace("=", "!", $string);

        return "ox_$string";
    }
public function encrypt ( $ string , $ key ) { $ string = "ox{$string}id" ; $ key = $ this -> _formKey ( $ key , $ string ) ; $ string = $ string ^ $ key ; $ string = base64_encode ( $ string ) ; $ string = str_replace ( "=" , "!" , $ string ) ; return "ox_$string" ; }
Encrypts string with given key.

@param string $string
@param string $key

@return string
Encrypts string with given key .