arokettu / pgp-word-list
PGP Word List Encoder/Decoder
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/arokettu/pgp-word-list
Requires
- php: ^7.3 | ^8.0
Requires (Dev)
- phpunit/phpunit: ^9.5
- psy/psysh: *
- sandfox.dev/code-standard: ^1.2023.12.09
- squizlabs/php_codesniffer: *
- vimeo/psalm: ^5.18
This package is auto-updated.
Last update: 2025-09-26 23:47:51 UTC
README
PGP Word List encoder and decoder library for PHP.
Installation
composer require 'arokettu/pgp-word-list'
Simple use
<?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"
Documentation
Read full documentation here: https://sandfox.dev/php/pgp-word-list.html
Support
Please file issues on our main repo at GitLab: https://gitlab.com/sandfox/php-pgp-word-list/-/issues
Feel free to ask any questions in our room on Gitter: https://gitter.im/arokettu/community
License
The library is available as open source under the terms of the MIT License.