Skip to content

Very simple lib for symmetric en/decrypt messages so they could be sent through untrusted channels.

License

Notifications You must be signed in to change notification settings

dorantor/simple-crypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

simple-crypt

Very simple lib for symmetric en/decrypt messages so they could be sent through untrusted channels.

Installation

composer require dorantor/simple-crypt

Usage

// 32 byte string as key
$key = md5('simple-crypt'); // 1b8ee2dc7723b2846792349dd4c74dc2
$crypt = new \Dorantor\SimpleCrypt($key);

$eMessage = $crypt->encrypt('Secret message that should be read only by trusted ones');

// ...

$oMessage = $crypt->decrypt($eMessage);

License

The library is released under the MIT License. See the bundled LICENSE file for details.

About

Very simple lib for symmetric en/decrypt messages so they could be sent through untrusted channels.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages