Resources\Encryption::decrypt PHP Method

decrypt() public method

Decryption method
public decrypt ( $string ) : string
return string
    public function decrypt($string)
    {
        $string = base64_decode($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 $return;
    }