PHP Classes

Cygnus Crypt: Encrypt and decrypt data scrambling characters

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (9 months ago) RSS 2.0 feedNot enough user ratingsTotal: 244 All time: 7,996 This week: 455Up
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: 38
All time rank: 4007176 in United Kingdom
Week rank: 206 Up12 in United Kingdom Up

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 (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:244
This week:0
All time:7,996
This week:455Up