benoitsan/aes 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

benoitsan/aes

Composer 安装命令:

composer require benoitsan/aes

包简介

A lightweight AES library.

README 文档

README

BBAES-PHP is a lightweight AES Encryption Class with PHP 5.6+.

BBAES-PHP uses the AES128 algorithm in CBC mode with PKCS#7 padding.

Requirements

  • PHP 5.6+
  • PHPUnit to execute the tests (Optional).

Installation

Install first composer. Create the following composer.json file and run the composer install command to install it.

{
    "require": {
        "benoitsan/aes": "*"
    }
}
<?php
require 'vendor/autoload.php';

use \AES\AES;

$key = AES::saltPassword('password', AES::salt());
$encrypted = AES::encrypt('message', $key);
printf('encrypted: ' . $encrypted . "<br/>");
$decrypted = AES::decrypt($encrypted, $key);
printf('decrypted: ' . $decrypted);

Documentation

The file AES.php is documented. Have also a look at the demo and unit tests to see how to use the class.

Creator

Benoît Bourdon (@benoitsan).

License

BBAES-PHP is available under the MIT license. See the LICENSE file for more info.

统计信息

  • 总下载量: 281
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-01-06