PHP Classes

File: example.php

Recommend this page to a friend!
  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: Create example.php
Date: 1 year ago
Size: 303 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)

?>