PHP Classes

File: manual.txt

Recommend this page to a friend!
  Classes of Dave Smith  >  Simple PHP Cipher Encryption  >  manual.txt  >  Download  
File: manual.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: Simple PHP Cipher Encryption
Encrypt and decrypt text by mapping characters
Author: By
Last change:
Date: 5 years ago
Size: 1,114 bytes


Class file image Download
Class: simpleCipher
Version: 1.0 11/17/2016

Copyright 2015 Wagon Trader, All Rights Reserved


This class will encrypt and decrypt text using a cipher that determines the replacement character by a mapped character and position in the message.

Since the position is also considered, common words like 'the' will always be different in encrypted message.


simplecipher.class.php - Main class

example.php - Simple application example


Upload files to a web accessible location on your server (eg. public_html)


No configuration needed.

If you use this in production, you will want to generate and save a new map. Simply run the following code in a script.

$cipher = new simpleCipher();
echo $cipher->generateMap(true);

Copy the new map and use it to replace the $cipherMap variable in class.


Refer to example.php file for a simple usage example.

Refer to simplecipher.class.php for available methods and their usage.



Initial release
For more information send a message to info at phpclasses dot org.