justalinko/niki264
Composer 安装命令:
composer require justalinko/niki264
包简介
Niki264 - Encode & Decode alpha2num or num2alpha and base64 with key
README 文档
README
Encoding & Decoding system merging between base64 encode with security key , and also support 2 side encoding alphabet to numeric or numeric to alphabet.
Introduction
NIKI264 is a simple encoding and decoding system that can be used to encode and decode data. NIKI264 is a combination of base64 encoding with a security key and also support 2 side encoding alphabet to numeric or numeric to alphabet.
The history of NIKI264
I (justalinko) only combine videos that my friends have made about base64 encoding and decoding with a security key called iki64 (https://github.com/milio48/iki64) and nk26 (https://github.com/milio48/nk26) and then I made a simple program to encode and decode data using NIKI264.
What's this for?
NIKI264 is a simple encoding and decoding system that can be used to encode and decode data. NIKI264 is a combination of base64 encoding with a security key and also support 2 side encoding alphabet to numeric or numeric to alphabet. you can using NIKI264 to encode and decode data when you want to hide your data from others , like password , email , balance, etc. in your database.
Installation
NIKI264 is available on Packagist (using semantic versioning), and installation via Composer is the recommended way to install NIKI264. Just add this line to your composer.json file:
"require": {
"justalinko/niki264": "^1.0"
}
then update repository
$ composer update
Or install via composer
$ composer require justalinko/niki264
How to use NIKI264
<?php
require_once 'vendor/autoload.php';
$niki264 = new justalinko\niki264\Niki264();
// encoding base64 with key
echo $niki264->encode('Hello World!' , 'secret');
// output : UOJuvO8aJ29yvOSk
// decoding base64 with key
echo $niki264->decode('UOJuvO8aJ29yvOSk' , 'secret');
// output : Hello World!
// encoding alphabet to numeric
echo $niki264->alpha2num('hello there');
// output : 961515180115961136
// decoding numeric to alphabet
echo $niki264->num2alpha('961515180115961136');
// output : hello there
// encoding safe mode ( to lowercase alphabet )
echo $niki264->alpha2numSafe('Hello World!');
// output : 961515180115961136
?>
License
NIKI264 is licensed under the MIT License - see the LICENSE file for details
justalinko/niki264 适用场景与选型建议
justalinko/niki264 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 22 次下载、GitHub Stars 达 4, 最近一次更新时间为 2023 年 03 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 justalinko/niki264 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 justalinko/niki264 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 22
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-30