tigr/compact-encrypter
最新稳定版本:1.0.0
Composer 安装命令:
composer require tigr/compact-encrypter
包简介
Data encrypter producing compact and URL-safe output
README 文档
README
Simple compact encrypter
Installation
composer require tigr/compact-encrypter
Why?
It provides very concise encrypted URL-safe data. For instance, it could be used to create self-contained tokens that would contain all the necessary information inside.
How does it work?
- No intermediate base64 or hex encoding, all data is raw binary.
- No JSON, use pack()/unpack().
- Use URL-safe version of base64 (drop trailing '=', replace '/+' with '-_').
- For hashing, use SHA1 instead of SHA256. I know, I know, but for real-world purposes SHA1 is still good enough.
- Allow dropping Mac (validation hash) whatsoever if you want it really short.
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-31