承接 testinaweb/dynamic-crypto 相关项目开发

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

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

testinaweb/dynamic-crypto

最新稳定版本:1.0.4

Composer 安装命令:

composer require testinaweb/dynamic-crypto

包简介

A php library to encrypt and decrypt strings with dynamic keys

README 文档

README

Total Downloads Latest Stable Version

A php library to encrypt and decrypt strings with dynamic keys. This was be implemented to guarantee a quite high security level.

The dynamic key is based on a substring of the hash of the passPhrase. The position of the first char of the key is saved in the end of the encrypted string to revert the encryption process. Because of the random substring, every encrypted string will be different from the previous one.

Install

Before using Dynamic Crypto in your project, add it to your "composer.json" file:

{
    "require": {
        "testinaweb/dynamic-crypto": "1.0.*@dev"
    }
}

or run this command as a bash command:

./composer.phar require testinaweb/dynamic-crypto 1.0.*@dev

Usage

<?php

use DynamicCrypto\DynamicCryptoFactory;

$passPhrase = 'ILoveDC';
$input = 'Your string here';

$dynamicEncrypt = DynamicCryptoFactory::buildDynamicEncrypter($passPhrase);
$dynamicDecrypt = DynamicCryptoFactory::buildDynamicDecrypter($passPhrase);

$encryptedString = $dynamicEncrypt->encrypt($input);
$decryptedString = $dynamicDecrypt->decrypt($encryptedString);

Author

Manuel Kanah - testinaweb@testinaweb.com - http://www.labna.it
Special thanks to Gabriele Giuranno - https://github.com/giordan83

License

Dynamic Crypto is licensed under the MIT License

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固