Skip to content

A simple script that turns hex strings to readable words

License

Notifications You must be signed in to change notification settings

dzervas/hexwordify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexwordify

This is a simple script that finds hex strings to the input given and maps it to words with the bip-0039 wordlist. The main idea for the creation of this script is to make GPG fingerprint check easier.

Usage

usage: hexwordify.py [-h] [-c] [-p] [-r] [-s MIN_SIZE]
                    [hex_string [hex_string ...]]

Turn hexadecimal strings to readable words. By default uses bip-0039 bitcoin
wordlist (2048 words). If no hex arguments are given, script reads from stding
and does regex search for hex strings longer than `min_size` characters.
Example: gpg -k | hexwordify.py

positional arguments:
  hex_string            Hex strings to turn into words

optional arguments:
  -h, --help            show this help message and exit
  -c, --no-color        Disable colored output
  -p, --prepend         Prepend string given to output
  -r, --no-replace      Ouput only found hex strings (only used if no hex
                        arguments are given)
  -s MIN_SIZE, --min-size MIN_SIZE
                        Minimum hex string size to search for in input (only
                        used if no hex arguments are given)

Example

dzervas ~> gpg --list-public-keys [email protected]
pub   rsa4096 2015-01-25 [SC]
      1814E2AFF5E59A004BA2109EBEA53D73528636D3
uid           [ultimate] Dimitris Zervas <[email protected]>
uid           [ultimate] Dimitris Zervas <[email protected]>
uid           [ultimate] Dimitris Zervas <[email protected]>
uid           [ultimate] Dimitris Zervas <[email protected]>
uid           [ultimate] Dimitris Zervas <[email protected]>
sub   rsa4096 2015-01-25 [E]

dzervas ~> gpg --list-public-keys [email protected] | hexwordify
pub   rsa4096 2015-01-25 [SC]
      coral evolve fitness stuff rebuild able fringe loud dice tumble pact snap express cycle object
uid           [ultimate] Dimitris Zervas <[email protected]>
uid           [ultimate] Dimitris Zervas <[email protected]>
uid           [ultimate] Dimitris Zervas <[email protected]>
uid           [ultimate] Dimitris Zervas <[email protected]>
uid           [ultimate] Dimitris Zervas <[email protected]>
sub   rsa4096 2015-01-25 [E]

About

A simple script that turns hex strings to readable words

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages