Version: 1.1 9/29/2017
Copyright 2017 Wagon Trader, All Rights Reserved
This class will encrypt and decrypt text using an image as the cypher key.
It will replace the base 64 latin letters and numbers 0 through 9.
imagekey.class.php - Main class
example.php - Simple application example
/testimage - folder contains images used in the example. These are public domain icons from the famfam set.
/msg-crypt - folder contains sample code for using remote images as keys.
Upload files to a web accessible location on your server (eg. public_html)
No configuration needed. The following properties can be set in the class file to fit your needs:
$imgPath = A default path to the key image(s).
$msgDelim = Delimeter to seperate encrypted characters. This should not be part of the base 64 characters or anything that will be used in a message body. By default it is set to the tilde.
Refer to example.php file for a simple usage example.
Refer to imagekey.class.php for available methods and their usage.
- Fixed issue where curl results where not being properly encoded
- Added ability to turn off peer verification on ssl using curl
- Added error handling on key generation