PHP Classes

File: example3.php

Recommend this page to a friend!
  Classes of agus hariyanto  >  Encrypt MD5 64  >  example3.php  >  Download  
File: example3.php
Role: Example script
Content type: text/plain
Description: example
Class: Encrypt MD5 64
Encrypt and decrypt data using MD5 digest of a key
Author: By
Last change:
Date: 17 years ago
Size: 1,188 bytes


Class file image Download

$enc = new encdec();
if (
$e = $enc->encrypt($data,$key);
'<h2> Result= '.urldecode($e).'</h2><br/><br/>';
$d = $enc->decrypt($dec,$key);
'<h2> Result= '.urldecode($d).'</h2><br/><br/>';


        <form method="post" action="example3.php">
        <input type="hidden" name="decryption" value="fals"/>
            <input type="text" name="data" value=""/>&nbsp;&nbsp;Data
            <input type="text" name="pwd" value="agus"/>&nbsp;&nbsp;Key
            <input type="submit" value="Encrypt">



        <form method="post" action="example3.php">
        <input type="hidden" name="data" value="fals"/>
            <input type="text" name="decryption" value="<?=urldecode($e);?>"/>&nbsp;&nbsp;Data
            <input type="text" name="pwd" value="<?=$key;?>"/>&nbsp;&nbsp;Key
            <input type="submit" value="Decrypt">

For more information send a message to info at phpclasses dot org.