Resources\Encryption::encrypt PHP Method

encrypt() public method

Produce encryption
public encrypt ( $string ) : string
return string
    public function encrypt($string)
    {
        $return = '';
        for ($i = 0; $i < strlen($string); $i++) {
            $str = substr($string, $i, 1);
            $return .= chr(ord($str) + ord(substr($this->key, $i % strlen($this->key) - 1, 1)));
        }
        return base64_encode($return);
    }