I want to encrypt a URL variable so that the user can't see the information when it is passed. I've found several scripts online but none of them work. Most seem to lean toward using base-64. Could someone help me write a short script that would encode or encrypt and then reverse that in the next page? It doesn't have to be super secure, just enough to mask an email address to the average user.
Obscure and encode a URL parameter
5.5k Views Asked by sehummel At
2
There are 2 best solutions below
0
Zafer
On
You can use a symmetric encryption algorithm. You can use mcrypt_encrypt and mcrypt_decrypt functions in mcrypt library.
http://php.net/manual/en/function.mcrypt-encrypt.php http://www.php.net/manual/en/function.mcrypt-decrypt.php
Related Questions in PHP
- How to add the dynamic new rows from my registration form in my database?
- Issue in payment form gateway
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- Function in anonymous Laravel Blade component
- How to change woocomerce or full wordpress currency with value from USD to AUD
- General questions about creating a custom theme Moodle CMS
- How to add logging to an abstract class in php
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Laravel: Using belongsToMany relationship with MongoDB
- window.location.href redirects but is causing problems on the webpage
- Key provided is shorter than 256 bits, only 64 bits provided
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
Related Questions in URL
- how do I change a URL with form to include additional selection
- Blog Post URL In flutter Web
- Why does RFC 3986 (URI generic syntax) declare the "host" component to be case-insensitive when the syntax rules show it to be case-sensitive?
- Non-Expiring Direct Link Like When Clicked It Will Download Without Landing Any Page
- Curl URL syntax for uploading files
- Send a json command to an app at a known port/address?
- How do I resolve this error ? "ERR_TOO_MANY_REDIRECTS"
- I'm using the googlesearch library in Colab, but I can't import my websites to a list. How can I do that?
- Sharepoint document library URL Rewrite
- Apache2 redirection results in wrong URL
- Vue / Vitest : issues in snapshots with dynamic import assets URL
- How to redirect to the landing page when the domain name is searched?
- find out filename from URL
- How do I ping a website to see if its valid before entering?
- Unable to download CSV file from web URL with runtime using python
Related Questions in ENCODE
- How to sanitise request body in spring boot if some attributes contain these values
- abinitio cant decode encoded sha256 value
- How to encode ConvertAPI secret while converting
- Using encode command to convert string variable to numeric
- Python, url changes while executed in requests.get() and results in the famous UnicodeDecodeError
- Disable Encoding Process on RestTemplate Springboot XML Request
- Python - Unicode & Character Encodings in Python
- OData v2: Correct Encoding Issue with StructuredQuery Class for DateTimeOffset in SAPQuery
- Encoding xml reponse using HttpUtility.HtmlEncode() method giving issues when node attribute contains empty string as value
- problem in pass php array to js function contain space in array items
- SQL Server Special Characters Sort By
- Encoding and decoding an email
- UnicodeEncodeError: 'ascii' codec can't encode character '\xed' in position 16: ordinal not in range(128)
- _io.StringIO object has no attribute 'encode'
- Label Encoder unseen label
Related Questions in SECURITY-BY-OBSCURITY
- php obscure email address with modifications
- Image Privacy: Base64 or Privacy Through Obscurity
- Is there a way to obscure the activities with Proguard in Android?
- Drawing parts of a Blob to html canvas without data urls in Javascript
- Rearranging characters in a 15-digit string with the ability to revert to the original string
- Non-accessible configuration design
- Numerical Obscurification
- How Safe is an Obscure File Download Link?
- Using @ in a C or C++ application
- Obfuscation of URLs - rails
- What's the optimal method to obscure String(Java - Serialization)
- Database security encoding
- Should i obscure database primary keys (id's) in application front end
- Is there any JS library to obscure string manipulation?
- De"compressing" Javascript
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you're not concerned about security, you can just use rot13:
will give: