PHP Classes

URL Encoder: Encode data to pass securely between two pages

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 50%Total: 2,284 All time: 1,712 This week: 132Up
Version License Categories
url_encoder 1.0BSD LicenseCryptography, Text processing


This class is used to encode data being passed between two sources that can be either two pages via URL arguments or by any other data storage media like databases, files or sessions variables.

It works by taking an array of variables and their values and encode it using a private key only known by the server scripts to create a string that represents those variables.

When another page script receives the encoded data, the class can decode it and restore the variables original values using the same server private key.

This way the class can be used pass or store data without the possibility of tampering by the users of a site or any other agent that does not have access to the site scripts.

Picture of Jason Browatzke
Name: Jason Browatzke <contact>
Classes: 1 package by
Country: Canada Canada
Age: 41
All time rank: 134232 in Canada Canada
Week rank: 371 Up14 in Canada Canada Up

  Files folder image Files  
File Role Description
Plain text file class.get_crypt.php Class Main class
Accessible without login Plain text file rec.php Example Main class
Accessible without login Plain text file send.php Example Main class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,712
This week:132Up
 User Ratings  
 All time