Login   Register  
PHP Classes
elePHPant
Icontem

File: example_use.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nick Tompson  >  Custom Encrypt Class  >  example_use.php  >  Download  
File: example_use.php
Role: Example script
Content type: text/plain
Description: Example usage
Class: Custom Encrypt Class
Generate repeated hashes of data
Author: By
Last change:
Date: 6 years ago
Size: 477 bytes
 

Contents

Class file image Download
<?php
require "class_encrypt.php";

$enc = new encrypt();

//Encrypt a string using md5 only (2 repeats).
$enc->set_encryption_method'md5''md5'2);
$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);
$encrypted $enc->do_encrypt'some_string' );

//You should pretty much work out how to do other combinations now ;)
?>