arokettu / pgp-word-list
PGP词表编码/解码器
1.0.1
2024-02-23 07:08 UTC
Requires
- php: ^7.3 | ^8.0
Requires (Dev)
- phpunit/phpunit: ^9.5
- sandfox.dev/code-standard: ^1.2023.12.09
- squizlabs/php_codesniffer: *
- vimeo/psalm: ^5.18
This package is auto-updated.
Last update: 2024-08-25 17:39:32 UTC
README
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.