Skip to content

deemru/Cryptash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cryptash

packagist php-v GitHub codacy license

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

Installation

Require through Composer:

{
    "require": {
        "deemru/cryptash": "1.0.*"
    }
}