library symcrypt
Simple symmetric cryptography
figdice/symcrypt
Simple symmetric cryptography
- Tuesday, October 20, 2015
- by figdice
- Repository
- 0 Watchers
- 0 Stars
- 2 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 3 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Crypt class
Provides an easy and secure way to encrypt/decrypt data with PHP using the Symmetric Cryptography method, a low cost algorithm that works based on the shared keys conecpt., (*1)
<?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);
?>
dev-master
9999999-dev
Simple symmetric cryptography
Sources
Download
GPL-3.0+
The Development Requires
by
Arthur Furlan
cryptography