Are there any potential issues with passing values in PHP through bookmarks?

Passing values in PHP through bookmarks can potentially expose sensitive information as the values are visible in the URL. To solve this issue, you can encrypt the values before passing them in the URL and decrypt them on the receiving end.

// Encrypt the value before passing it in the URL
$value = 'sensitive_data';
$encrypted_value = base64_encode(openssl_encrypt($value, 'AES-256-CBC', 'secret_key', 0, '16charsofiv'));

// Pass the encrypted value in the URL
$url = "http://example.com/page.php?data=$encrypted_value";

// Decrypt the value on the receiving end
$decrypted_value = openssl_decrypt(base64_decode($_GET['data']), 'AES-256-CBC', 'secret_key', 0, '16charsofiv');