Giter Site home page Giter Site logo

thblt / pgp-words.rs Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 24 KB

Make IDs and fingerprints easier to verify, using the PGP Word List. Also exists in Python https://github.com/thblt/pgp-words

License: GNU General Public License v3.0

Roff 100.00%

pgp-words.rs's Introduction

pgp-words

pgp-words.rs is a Rust implementation of the PGP Word List. The word list was designed to make it easy to convey sequences of bytes using only voice, and is particularly suited for transmitting key fingerprints and other similar sequences over the phone. Even in the same physical place, it's easier to just read a bunch of words out loud than to spell a sequence of hex digits (was that 3 times F or 3F?)

Each word represents exactly one byte. To avoid errors, there are actually 512 words in the list (two per possible byte value) and words are selected depending on the parity of the byte position. For example, 0x9e is quiver if the byte position in the sequence is an even number, onlooker if it is odd.

Usage

pgp-words reads a fingerprint or any other hexadecimal sequence, either from the command line or the standard input, and converts it into words:

$ pgp-words d1c2 25e4 26c6 33dd 94d1  a7e8 c3f4 08aa 9b34 2488

d1c2 25e4 26c6 33dd 94d1 a7e8 c3f4 08aa 9b34 2488:
	stairway repellent bombast tradition
	bookshelf responsive chisel tambourine
	Pluto scavenger repay typewriter
	snowcap Virginia aimless pedigree
	puppy confidence bluebird maritime

gpg --fingerprint 0x33CDE511  | pgp-words

EA5B 81C5 6498 8C73 EE90  DEE9 BAF1 E072 33CD E511:
        Trojan exodus minnow resistor
        flytrap narrative offload hurricane
        tycoon millionaire tactics ultimate
        shadow vacancy tapeworm holiness
        chisel sandalwood topmost Babylon
  • When called with command-line arguments, it concatenates them and treats them as a single value.
  • When called from stdin, it treats each lins as a single value and silently ignores invalid lines.
  • For simplicity, spaces, tabs and newlines are ignored.

pgp-words.rs's People

Contributors

boruch-baum avatar thblt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.