Login   Register  
PHP Classes

BmpCrypt: Encrypt and decrypt data hidden in bitmap image

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 <contact>
Classes: 2 packages by
Country: United States United States
Age: 62
All time rank: 73493 in United States United States
Week rank: 809 Down77 in United States United States Up
Innovation award
Innovation award
Nominee: 2x

  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
BmpCrypt is a class that uses the steganography technique to hide encrypted data within a bitmap image (.BMP).

This class can hide the data very well in 24 or 32 bit RGB images.

The class could be used to hide the data in indexed color images, for instance of 256 colors, but that would require adding a few functions to deal with the modifications to the color palette.

This class implements 4 levels of bit stream encoding. Each level uses an increasing number of bits per each byte in the RGB pixel table. Therefore, the higher level of encoding will hold more bytes of data in the bitmap image.

The class comes with a Web base example that shows how to decrypt an encrypted JPEG out of a BMP file and displays the output image.

There is also an example script that shows how to use the class to encrypt and decrupt data from the command line.

  Classes of Chao-Chyuan Shih  >  BmpCrypt  >  Download Download .zip .tar.gz  >  Support forum Support forum (4)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: BmpCrypt
Base name: bmpcrypt
Description: Encrypt and decrypt data hidden in bitmap image
Version: 1.0.0
PHP version: -
License: GNU General Public License (GPL)
All time users: 2745 users
All time rank: 1262
Week users: 2 users
Week rank: 938 Up
  Groups   Screenshots Screenshots   Rate classes User ratings   Applications   Files Files  

Group folder image Graphics Colors, images, charts and picture formats View top rated classes
Group folder image Cryptography Encrypting, decrypting and hashing data View top rated classes

  Files folder image Screenshots  
File Role Description
Accessible without login Image file ScreenShot.jpg Screen Screenshot

  Innovation Award  
PHP Programming Innovation award nominee
April 2005
Number 3

Prize: One book of choice by SAMS
Some sites use digital watermark techniques to mark their images in order to notice when the images are being used without permission by other sites.

However, this does not stop people from cleaning the visible marks and still show them without asking permission or giving proper credit to the original owners. This fact makes it difficult to take legal action.

An alternative solution consists in adding information to the image files that does not show in the image itself. Later, that information could be used to detect and prove that the images files were stollen.

This class provides a solution for encrypting and embedding in image files that can be used later to demonstrate the real origin of the images.

Manuel Lemos

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (91%) Good (91%) Good (91%) Good (83%) - - Sufficient (72%) 134
Month: Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.
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 BmpCrypt_Class.php Class BmpCrypt
Plain text file BmpCrypt_CmdLine_Example.php Example Command Line Example
Plain text file Decrypt_Webpage_Example.php Example Web Page Example
Image file Dog.bmp Photo Sample Image
Image file Horse.jpg Photo Sample Image
Image file HorseInDog.bmp Output Sample Output
Plain text file readme.txt Doc. Read Me

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