woodruffw / pgp-wordlist.cr

A Crystal library for generating PGP word lists.

Home Page:https://woodruffw.github.io/pgp-wordlist.cr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pgp-wordlist.cr

license Build Status

A simple library for converting sequences of bytes into unambiguous English words.

Uses the "official" word list: https://philzimmermann.com/docs/PGP_word_list.pdf

Installation

Add this to your application's shard.yml:

dependencies:
  pgp-wordlist:
    github: woodruffw/pgp-wordlist.cr

Usage

require "pgp-wordlist"

PGP::Wordlist.from_hexstring "0123 cdef" # => "absurd cannonball spindle unravel"

bytes = [0xfe_u8, 0xed_u8, 0xfa_u8, 0xce_u8]
PGP::Wordlist.from_bytes bytes # => "woodlark unify wallet sardonic"

Contributing

  1. Fork it (https://github.com/woodruffw/pgp-wordlist.cr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • woodruffw William Woodruff - creator, maintainer

About

A Crystal library for generating PGP word lists.

https://woodruffw.github.io/pgp-wordlist.cr/

License:Other


Languages

Language:Crystal 100.0%