Skip to content

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.

License

Notifications You must be signed in to change notification settings

zzgab/php-cryptclass

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

<?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);
?>

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%