How strong of encryption do you want? The easiest way is to use something like base64_encode() and base64_decode(). That will make it look obscure, but that isn't very secure if you are genuinely worried about hackers. The more secure route would be to use something like openssl_encrypt: https://www.php.net/manual/en/function.openssl-encrypt.php, which has a variety of encryption types that include keyed encryption that would not be easily decoded without the key.