PHP Classes

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    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (4 days ago) RSS 2.0 feedNot enough user ratingsTotal: 243 This week: 2All time: 7,986 This week: 204Up
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

Details

CygnusCrypt =========== 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 $newEncryption->output; $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 $decryption->output; 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 README.md Doc. Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:243
This week:2
All time:7,986
This week:204Up