PHP Classes

File: example.php

Recommend this page to a friend!
  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: 15 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 ..
?>