PHP Classes

Simple Crypt: Replace characters to text unreadable

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 391 All time: 6,650 This week: 673Up
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: 26
All time rank: 2189146 in Brazil Brazil
Week rank: 158 Up14 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 (3)  
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

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  
 0%
Total:391
This week:0
All time:6,650
This week:673Up