Download the PHP package calject/encryption without Composer
On this page you can find all versions of the php package calject/encryption. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package encryption
encryption
Table of Contents
- 一、介绍
- 二、安装教程
- 三、使用
- AES
- RSA
- 四、拓展
一、介绍 top
一个php基于openssl的加解密简单封装实现,仅做常用的 AES/RSA 加解密封装,支持PHP版本>=7.0且安装了openssl拓展的程序
若程序版本<7.0或者有其它算法需求或需要源码实现的,请使用php的加密库 phpseclib/phpseclib
二、安装教程 top
执行composer require "calject/encryption"
三、使用 top
-
Calject\Encryption\Encryption
method
rsaFactory
aesFactory
aesHmacFatory
get
Calject\Encryption\Encryption::rsaFactory()
Calject\Encryption\Encryption::aesFactory()
Calject\Encryption\Encryption::aesHmacFatory()
Calject\Encryption\Factories\RsaFactory
method
createPkcs1
createPkcs8
createPkcs12
createX509
Calject\Encryption\Factories\AesFactory
method
createAes
createAesCbc128
createAesCbc256
createAesEcb128
createAesEcb256
-
Calject\Encryption\Factories\AesHmacFactory
method
createAes
createAesCbc128
createAesCbc256
-
examples
- 代码示例及说明
3.1 AES
3.2 RSA
四、拓展 top
- 查看
openssl
可用加密算法及支持的摘要算法 -
aes算法拓展,通过AesFactory::createAes() 输入算法参数,参考
-
拓展aes实现
- 继承
Calject\Encryption\Contracts\AbsAesEncryption
抽象类并实现其方法
- 继承
-
拓展rsa实现
- 继承
Calject\Encryption\Contracts\AbsRsaEncryption
抽象类并实现其方法
- 继承
- 拓展其他算法
- 继承
Calject\Encryption\Contracts\AbsEncryption
抽象类并实现其方法
- 继承
All versions of encryption with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0
ext-openssl Version *
ext-json Version *
ext-openssl Version *
ext-json Version *
The package calject/encryption contains the following files
Loading the files please wait ....