What's new? | Help | Directory | Sign in
Google
                
Show all Featured Wiki Pages:
Documentation
How to join?
Project owners:
  arthur.furlan

What's the Crypt class?

The Crypt class provides an easy and secure way to encrypt and decrypt data using the Symmetric Cryptography method, that is a low cost algorithm that encrypt data based on the shared keys conecpt.

Current version: 2.2

Using example

<?php
require_once 'Crypt/Crypt.php';

$crypt = new Crypt();
$crypt->Mode = Crypt::MODE_HEX;
$crypt->Key  = '!@#$%&*()_+?:';
$encrypted = $crypt->encrypt('my test');
echo $crypt->decrypt($encrypted);
?>