承接 arispati/crypto-aes 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

arispati/crypto-aes

最新稳定版本:v0.1.2

Composer 安装命令:

composer require arispati/crypto-aes

包简介

AES crypto library which can be used in php and javascript

关键字:

README 文档

README

AES crypto library which can be used in php and javascript (PHP Version).

If you want to use this library in javascript use the CryptoAESJS.

How to Install

  • Install with composer
composer require arispati/crypto-aes

How to Use

use Arispati\CryptoAES\CryptoAES;

// Set the secret key
$secretKey = 's3cr3tK3y'; // default secret key

// Initilize CryptoAES Class
$crypto = new CryptoAES($secretKey);

// Encrypt
$encrypted = $crypto->encrypt('Hello World');
// {"ct":"7aV+gq6hm69IO1\/pyjPliQ==","iv":"ece63be3d70d2e275396e3b82a43f425","s":"655cc08d5bcfd469"}

// Decrypt
$decrypted = $crypto->decrypt($encrypted);
// "Hello World"

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-08-07