Cygnus Crypt: Encrypt and decrypt data scrambling characters

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 234 All time: 8,005 This week: 248Up
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
Age: 35
All time rank: 3965169 in United Kingdom
Week rank: 509 Up21 in 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  
This week:0
All time:8,005
This week:248Up
For more information send a message to info at phpclasses dot org.