承接 hereismhtm/pin-puzzle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hereismhtm/pin-puzzle

最新稳定版本:v1.0.0

Composer 安装命令:

composer require hereismhtm/pin-puzzle

包简介

Personal Identification Number (PIN) transformer into three separate secret parts, assemble them back together to get your PIN

README 文档

README

Personal Identification Number (PIN) transformer into three separate secret parts, assemble them back together to get your PIN.

Requirements

PHP 8.2+

Get Started

Install via composer

composer require hereismhtm/pin-puzzle
composer update

Usage

use PinPuzzle\PinPuzzle;

$pin = '1234';

$pzl = new PinPuzzle(uuid: '365e898f-e2a3-4be0-bae8-f25bb241c51d'); // use your own uuid
$inst = $pzl->resolve($pin);

echo $inst . "\n";
# OUTPUT: 4497446061834.6175011677438780992.heBStfl9FLfqaqbC
# NOTE: output is unique every run time.


// ----------------


$my_pin = $pzl->assembly($inst);

if ($my_pin === false)
    echo 'Bad PIN instruction setup' . "\n";
else
    echo $my_pin . "\n";
    # OUTPUT: 1234

You can setup an instruction object manually like this:

$inst = (new \PinPuzzle\PinInstruction())
    ->processor('4497446061834')
    ->input('6175011677438780992')
    ->key('heBStfl9FLfqaqbC');

License

PinPuzzle is released under the MIT license.

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-16