Login   Register  
PHP Classes
elePHPant
Icontem

TxtCrypt: Encrypt a file and hide it in a regular text file

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Chao-Chyuan Shih
Name: Chao-Chyuan Shih <e-mail contact>
Packages: 2 Browse all classes by Chao-Chyuan Shih Browse all classes by
Country: United States United States - PHP jobs in United States
Age: 62
All time rank: 74194 in United States United States
Week rank: 543 Up56 in United States United States Up
Innovation award
Innovation award
Nominee: 2x


  Detailed description   Download Download .zip .tar.gz  
This class can encrypt a file and insert the encrypted data into a regular text file in such way that it does not change the way the text file appears.

The encrypt algorithm is simple but it can be replaced by another more robust algorithm.

To hide the encrypted data within a text file without changing how it appears, the data is compressed, encrypted, and converted to bit stream. The bit stream is then converted to tab (0x09) and space (0x20) characters , replacing the '1's and '0's of the bit stream. The resulting tab and space character strings is then added to the end of the carrier file.

The original carrier file size is also recorded as a converted bit stream in the end of the output file. This additional piece of information is used to extract the hidden file by the class decrypt function.

  Classes of Chao-Chyuan Shih  >  TxtCrypt  >  Download Download .zip .tar.gz  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: TxtCrypt
Base name: txtcrypt
Description: Encrypt a file and hide it in a regular text file
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 1511 users
All time rank: 2369
Week users: 1 user
Week rank: 1765 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Cryptography Encrypting, decrypting and hashing data View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
April 2005
Number 5
Steganography is the process of hiding information inside data.

One of the purposes of steganography is to pass an implicit message without letting the messenger be aware that it is carrying it and so prevent that he realizes that it is there and what it means.

This class implements an steganography solution based on a smart technique for hiding data within a text message by using white space characters like tabs and spaces.

Since white space does not show anything when it is printed, this technique can be very successful on the purpose of hiding arbitrary binary messages within unsuspected texts.

Manuel Lemos

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file TxtCrypt_Class.php Class TxtClass
Accessible without login Plain text file TxtCrypt_CommandLine_Example.php Example Command Line Example
Accessible without login Plain text file TxtCrypt_Webpage_Example.php Example Webpage Example

Download Download all files: txtcrypt.tar.gz txtcrypt.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.