/key2words

Converts ed25519 keys and bip39 words: https://jamartin9.github.io/key2words/

Primary LanguageRust

Key2Words

Extracts 24 word mnemonic from encrypted ed25519 openssh/gpg key. Exports onion service, gpg and openssh keys from 24 word mnemonic. When given a pass phrase it will xor the words with the hash of pass. Remove the pass phrase of gpg/ssh with their own utilities to avoid applying a pass phrase to the mnemonic

For the web ui run trunk serve

building

cargo build
cargo fmt
cargo clippy
cargo test

convert words into onion service, ssh and gpg key

cargo run -- -t -g -s -w "render current master pear scrap hope mad mix pill penalty fresh mixture unaware armor lift million hard alley oppose pulse angry suspect element price" -c "user@example.com" -d 157680000 -e 1663353640

extract ed25519 openssh key seed

Generate key with ssh-keygen -t ed25519

cargo run -- -k ssh.key

convert words and comment into private encrypted gpg key

cargo run -- -w "render current master pear scrap hope mad mix pill penalty fresh mixture unaware armor lift million hard alley oppose pulse angry suspect element price" -p "doggy" -c "user@example.com" -g

extract encrypted ed25519 gpg key seed and encrypt words with phrase

cargo run -- -k key.gpg -p "doggy"

update web page

From web/

git worktree prune
rm -rf ./dist
git worktree add --track -B pages ./dist origin/pages
trunk build --release
git worktree repair

build app

May have to clear cache during dev rm -rf ~/.cache/key2words-tauri-app

TAURI_SKIP_UPDATE_CHECK="true" cargo tauri dev

SSR

SSR server for 127.0.0.1:9001/key2words/

trunk build --all-features
cargo run -- -r 9001 --tracing 9002
tokio-tracing http://127:0.0.1:9002