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 Christian  >  Anti_Mcrypt  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example usage
Class: Anti_Mcrypt
Encrypt and decrypt data using mcrypt
Author: By
Last change: changed text and variables
Date: 5 years ago
Size: 217 bytes
 

Contents

Class file image Download
<?php
$mcrypt 
= new Anti_Mcrypt("my_secret_password");
echo 
$encryptedText $mcrypt->encrypt("Fischers Fritz fischt frische Fische");
echo 
"<hr />";
echo 
$mcrypt->decrypt($encryptedText); // Fischers Fritz ..
?>