-
Notifications
You must be signed in to change notification settings - Fork 1
glenscott/simple-crypt
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
<?php require_once 'SimpleCrypt.php'; // show the algorithms available for use print_r( SimpleCrypt::get_available_algorithms() ); // encrypt a string using Triple DES (CBC mode) $crypt = new SimpleCrypt( 'tripledes', 'mysecretkey' ); $encrypted_data = $crypt->encrypt_data( 'stringtoencrypt' ); echo "Encrypted data: " . bin2hex( $encrypted_data ) . "\n"; echo "Decrypted data: " . $crypt->decrypt_data( $encrypted_data ) . "\n";
About
OO wrapper around mcrypt functions providing simple cryptography functionality
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published