encrypt() encrypt( $string, $key = '') : string Encrypt a string with a key. If the key is not given, $this->key is used. If $this->key is empty an exception is raised. Parameters $string $key Returns string — Encoded string
decrypt() decrypt( $string, $key = '') : string Decrypt a string with a key. If the key is not given, $this->key is used. If $this->key is empty an exception is raised. Parameters $string $key Returns string — Decoded string