Code Monkey home page Code Monkey logo

gpg-hd.js's Introduction

Deterministic GPG keychain generator (javascript)

GPG-HD is a deterministic full GPG keychain (CA key + 3 subkeys) generator using as input a BIP-39 phrase. For those who don't want their digital identity to be tied to physical media in case of theft/loss/or electronic failure.

Requirements

  • nodejs
  • yarn (or npm)

Installation

yarn

How to use

./gpg-hd (to echo usage)

./gpg-hd -k ed25519 -u "foo bar <[email protected]" -d "2023-04-20" -s "milk sad wage cup reward umbrella raven visa give list decorate bulb gold raise twenty fly manual stand float super gentle climb fold park"

Or to import straight into your PGP keychain:

./gpg-hd -k ed25519 -u "foo bar <[email protected]" -d "2023-04-20" -s "milk sad wage cup reward umbrella raven visa give list decorate bulb gold raise twenty fly manual stand float super gentle climb fold park" | gpg --import

By default GPG-HD uses 1970-01-1 (Unix epoch of 1 second) to signal a deterministic keychain. Optionally one can over-ride this with -d "2023-08-22T01:43:41.612Z" while key expirations are defaulted to never expire.

Use Cases

On an airgap machine, use a safe brainwallet such as PortalWallet to generate a BIP-39 phrase:

SEED = portalwallet("satoshi")

SEED="fetch december jazz hood pact owner cloth apart impact then person actual"

./gpg-hd -k ed25519 -u "foo bar <[email protected]" -s "$SEED"

gpg-hd.js's People

Contributors

logicwax 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.