Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ákos Nikházy  >  Simple Steganography  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example for both hide and retrieve text
Class: Simple Steganography
Store and retrieve text messages hidden in images
Author: By
Last change:
Date: 1 year ago
Size: 317 bytes
 

Contents

Class file image Download
<?php
include 'Simple.Stegonography.class.php';


$a = new Stego();

//This will put the text 'Test' in the example.png image
header('Content-Type: image/png');
imagepng($a -> stegoIt('Test','example.png',1000));

//This will get the text from example2.png
echo $a -> unStegoIt('example2.png',1000)

?>