PHP Classes

Cygnus Crypt: Encrypt and decrypt data scrambling characters

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-05-02 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 213 All time: 7,496 This week: 1,115Up
Version License PHP version Categories  
cygnus-crypt 2.5.1GNU General Publi...5PHP 5, Cryptography
Description Author  

This class can encrypt and decrypt data scrambling characters.

It takes a pin number and uses to setup the scrambling of the characters to be encrypted.

The class can also do the opposite, i.e. use the same pin number to revert the scrambling and restore the original data from the encrypted value.

The encrypted data may be encoded using the base64 algorithm to return data using readable characters.

Picture of Cygnus HeeL
  Performance   Level  
Name: Cygnus HeeL <contact>
Classes: 1 package by
Country: United Kingdom United Kingdom
Age: 29
All time rank: 3719161 in United Kingdom United Kingdom
Week rank: 1624 Up66 in United Kingdom United Kingdom Up


Class that can encrypt and decrypt data as well as add base64 encoding and HTML encoding. The encryption is determined by the pin number, password or mixed password passed.

$newEncryption = new CygnusCrypt;
// set your own secrets
$newEncryption->setSecrets($secretPin, $secret, $secret2, $secret3)->Encrypt($pin, $data, $base64Encode, $HTMLEncode);
// use the default secrets
$newEncryption->Encrypt($Pin, $textToEncrypt, $baseEncoding, $HTMLEncode);
// output the encrypted data

$decryption = new CygnusCrypt;
// set your own secrets
$newDecryption->setSecrets($secretPin, $secret, $secret2, $secret3)->Decrypt($pin, $encryptedData, $base64Encode, $HTMLEncode);
// use the default secrets
$decryption->Decrypt($Pin, $textToDecrypt, $baseEncoding, $HTMLEncode);
// output the decrypted data

To use $baseEncoding or $HTMLEncode set to the number 1 otherwise set to 0

WARNING, if you use the same object to encrypt and decrypt data the latter will overwrite the first.
  Files folder image Files  
File Role Description
Plain text file CygnusCrypt.php Class Class source
Plain text file exampleUsage.php Example Example script
Plain text file LICENSE Lic. Auxiliary data
Plain text file Doc. Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%Total:213All time:7,496
 This week:0This week:1,115Up