rmrevin/yii2-xxtea Extension for yii2 encryption algorithm XXTEA

xxteaencrypt

Extension for yii2 encryption algorithm "XXTEA"

Installation

In composer.json:

{
    "require": {
        "rmrevin/yii2-xxtea": "1.2.0"
    }
}

configuration

/protected/config/main.php

<?
return array(
  // ...
    'components' => array(
        // ...
        'xxtea' => array(
            'class' => 'rmrevin\yii\xxtea\Component',
            'key' => 'qwertyuiopasdfgh', // 16 letters
            'base64_encode' => true,
        ),
    ),
    // ...
);

Usage

<?
// ...
$XXTEA = \Yii::$app->get('xxtea');

$hash = $XXTEA->encrypt('data to encrypting');

$data = $XXTEA->decrypt($hash);

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.2.0 is the latest of 8 releases



BSD-3-Clause license
Stats
6 github stars & 2 github forks
0 downloads in the last day
4 downloads in the last 30 days
265 total downloads