Download the PHP package ren3016/opensslcrypt without Composer
On this page you can find all versions of the php package ren3016/opensslcrypt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ren3016/opensslcrypt
More information about ren3016/opensslcrypt
Files in ren3016/opensslcrypt
Download ren3016/opensslcrypt
More information about ren3016/opensslcrypt
Files in ren3016/opensslcrypt
Vendor ren3016
Package opensslcrypt
Short Description open ssl crypt加密组件包提供加密解密功能
License MIT
Homepage https://github.com/ren3016/opensslcrypt
Package opensslcrypt
Short Description open ssl crypt加密组件包提供加密解密功能
License MIT
Homepage https://github.com/ren3016/opensslcrypt
Please rate this library. Is it a good library?
Informations about the package opensslcrypt
OpenSslCrypt 以openssl_encrypt加密解密数据
一、加载方式:
1.1 composer 自动加载
include "vendor/autoload.php";
use ren3016\opensslcrypt\OpenSslCrypt;
1.2 引入文件
include_once "src/opensslcrypt.php"
use ren3016\opensslcrypt\OpenSslCrypt;
二、实例化类,创建 $crypt 对象
$crypt = new OpenSslCrypt();
2.1 加密
加密字符串或数组,使用类方式 enc
$crypt_str = $crypt->enc("Hello World!");
echo"Hello World! 加密后是: " . $crypt_str . "<br><br>
\n\n";
2.2 解密
把加密字符串 解密为 字符串或数组,使用类方法 dec
echo" 再解密后是: " . $crypt->dec($crypt_str);
使用 demo.php 测试
将 demo.php 文件复制到根目录 (和 vendor 平行的目录)中访问 demo.php 即可
All versions of opensslcrypt with dependencies
PHP Build Version
Package Version
No informations.
The package ren3016/opensslcrypt contains the following files
Loading the files please wait ....