承接 hobocta/encrypt 相关项目开发

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

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

hobocta/encrypt

Composer 安装命令:

composer require hobocta/encrypt

包简介

Easy way to use data encryption

README 文档

README

Build Status codecov Latest Stable Version Latest Unstable Version License Downloads

Requirements

php ^5.3.3 or ^7.0 or ^8.0 with extension OpenSSL or Mcrypt

Install

composer require hobocta/encrypt

Usage

use Hobocta\Encrypt\Encryptor\Fabric\EncryptorFabric;
use Hobocta\Encrypt\EncryptService;
use Hobocta\Encrypt\Stringify\Base64Stringify;

$data = 'My secret data!';

$password = '1234';

$encryptService = new EncryptService(
    (new EncryptorFabric(sha1($password)))->createEncryptor128(),
    new Base64Stringify()
);

$encrypted = $encryptService->encrypt($data); // 'fxVrDEtIb/krb8fHW6hhVDbH9VeV1Lwbs3hM35ITtc8='

$decrypted = $encryptService->decrypt($encrypted); // 'My secret data!'

Run simple example

php examples/simple.php code

Run example with all variants

php examples/all.php

Run performance test for all variants

php examples/performance.php

Run unit tests

Make sure to install PHPUnit separately before running the tests

phpunit

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-12-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固