PHP Classes

Simple Crypt: Replace characters to text unreadable

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 391 This week: 1All time: 6,642 This week: 560Up
Version License PHP version Categories
simple-crypt 1.0.2GNU General Publi...5.0PHP 5, Text processing
Description 

Author

This class can replace characters to text unreadable.

It can encode a given text string by replacing certain characters by others, so the results becomes unreadable.

The class can also decode a previously decoded text by reverting the replaced characters with the original text.

In Portugueses:

SimpleCrypt utiliza a substituição de caracteres para tornar o texto ilegível. O programador tem a liberdade de escolher como quer a saída dos dados através de uma array na classe.

Picture of Gabriel Almeida
  Performance   Level  
Name: Gabriel Almeida <contact>
Classes: 4 packages by
Country: Brazil Brazil
Age: 25
All time rank: 2187146 in Brazil Brazil
Week rank: 411 Up35 in Brazil Brazil Up

Example

<?php

// - Include Class
require_once('simplecrypt.php');

// - Starting Class
$simpleCrypt = new SimpleCrypt;


// - Example of text
$text = 'Hello World';


// - Encrypt
$crypt = $simpleCrypt->encode( $text );
// - Decrypt
$decrypt = $simpleCrypt->decode( $crypt );


// - Print text Encrypt
print('Encrypted: ' . $crypt);


print(
'<br />');


// - Print text Decrypt
print('Decrypted: ' . $decrypt);



  Files folder image Files  
File Role Description
Accessible without login Plain text file chars.txt Data arrays chars
Accessible without login Plain text file example.php Example Example for use of class
Plain text file simplecrypt.php Class Class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:391
This week:1
All time:6,642
This week:560Up