<?php
 
require "class_encrypt.php";
 
 
$enc = new encrypt();
 
 
//Encrypt a string using md5 only (2 repeats).
 
$enc->set_encryption_method( 'md5', 'md5', 2, 0 );
 
$encrypted = $enc->do_encrypt( 'some_string' );
 
 
//Encrypt a string using md5 and sha1, but return as md5. (2 repeats).
 
$enc->set_encryption_method( array('md5','sha1'), 'md5', 2, 0 );
 
$encrypted = $enc->do_encrypt( 'some_string' );
 
 
//You should pretty much work out how to do other combinations now ;)
 
?>
 
 |