deemru / cryptash
Hash-based encrypt/decrypt
Installs: 8 051
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.4
README
Cryptash implements hash based encryption with user-defined size of IV and MAC.
It is a pretty simple way to protect and verify your data transfers which goes outside.
Usage
$cryptash = new Cryptash( 'Password' ); $msg = 'Hello, world!'; $encrypted = $cryptash->encryptash( $msg ); $decrypted = $cryptash->decryptash( $encrypted ); if( $decrypted !== $msg ) exit( 1 );
Requirements
- PHP >=5.4
Installation
Require through Composer:
{ "require": { "deemru/cryptash": "1.0.*" } }