Skip to content

fpdf-easytable/Crypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crypt

Simple but strong class for encryption

Quick start

  • In the file config.php set a value for the constant PATH,

  • Run the script setUp.php via command line,

  • Done!

Example

include 'Crypt.php';

$encrypt=new Crypt();

$my_secrect=$encrypt->encrypt("hello");

echo $my_secrect . "\n";
echo $encrypt->decrypt($my_secrect) . "\n";

How to

  • send encrypted messages between two servers:

    - generate the key_file.php via setUp.php in server A,
    - set the constant PATH in config.php in server B *without* running the script setUp.php, 
    - upload to server B the key_file.php generated by server A and put it in the path PATH of server B
    - done!
    

About

Simple but strong class for encryption

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages