Download the PHP package moleft/data-encrypt without Composer

On this page you can find all versions of the php package moleft/data-encrypt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package data-encrypt

Data-Encrypt

一个简简单单的信息加密库,利用私钥将数据加密,将公钥上传至服务端,实现相对安全的数据传输

作者:MoLeft

博客:www.moleft.cn

使用方法

安装

声明一个配置数组

format_type : 可选 stringfile

string: 私钥private_key和公钥public_key需传入字符串形式

file:需要传入文件地址,建议绝对路径

创建一个Config实例

也可以捕获异常

随便写点数据测试

加密

解密

方法说明

  1. sign()verify()是签名和验签的方法不是必须的,如果你喜欢也可以签名了不验签,有签名我不验,就是玩~

  2. Encrypt 对象最后必须调用json()方法来获取加密好的数据,因为我只写了这一种。

  3. Decrypt 对象一定一定要使用data()方法设置需要解密的数据,别问为什么,我开心。

最后再给大家看看测试的数据吧


All versions of data-encrypt with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package moleft/data-encrypt contains the following files

Loading the files please wait ....