arokettu/pgp-word-list

PGP词表编码/解码器

1.0.1 2024-02-23 07:08 UTC

This package is auto-updated.

Last update: 2024-08-25 17:39:32 UTC


README

Packagist PHP Version License Gitlab CI Codecov

PHP的PGP词表编码和解码库。

安装

composer require 'arokettu/pgp-word-list'

简单使用

<?php

$encoded = \Arokettu\PgpWordList\PgpWordList::encode('test test');
var_dump($encoded); // "indoors glossary hockey hydraulic bison hydraulic fracture hurricane indoors"

$decoded = \Arokettu\PgpWordList\PgpWordList::decode(
    'indoors glossary hockey hydraulic bison hydraulic fracture hurricane indoors'
);
var_dump($decoded); // "test test"

// fuzzy decoding
$decoded = \Arokettu\PgpWordList\PgpWordList::decode(
    'indoors glossary hokkey hydrolic bson hydraulic fracture hurricane inndoors',
    2
);
var_dump($decoded); // "test test"

文档

请在此处阅读完整文档:https://sandfox.dev/php/pgp-word-list.html

支持

请在GitLab的主要仓库中提交问题:https://gitlab.com/sandfox/php-pgp-word-list/-/issues

在Gitter的房间中随时提问:https://gitter.im/arokettu/community

许可证

该库在MIT许可证的条款下作为开源软件提供。MIT License.