PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Nick Daniels   PHP Cryptor   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: The example file
Class: PHP Cryptor
Encrypt and decrypt data using mcrypt
Author: By
Last change:
Date: 8 years ago
Size: 249 bytes
 

Contents

Class file image Download
<?php
/**
 * A Custom Cryptor
 * --------------------
 * Devel: Nick Daniels
 * Twttr: @ManicSec
 */

// Do encryption
echo Cryptor::encrypt("test", md5("sec"))."\n";

// Do decryption
echo Cryptor::decrypt("aHJyZiXvSHk=", md5("sec"));