Skip to content

Instantly share code, notes, and snippets.

@justmiles
Created August 11, 2021 20:19
Show Gist options
  • Save justmiles/de72b1a711d23c788b4d21004784133f to your computer and use it in GitHub Desktop.
Save justmiles/de72b1a711d23c788b4d21004784133f to your computer and use it in GitHub Desktop.

Manage Passwords Like a Boss

refine the idea is to lower barrier to entry for managing passwords

Setup a Keybase Account

refine

Import Your Keybase Key

# import your key
export GPG_TTY=$(tty)
keybase pgp list | grep "Key ID" | awk '{print $4}' | xargs -I % keybase pgp export -q % -s | gpg --allow-secret-key-import --import

gpg --list-keys

# trust key
gpg --edit-key YOURKEYID, trust, 5, save

Configure a new Password Store

Use the below instructions to setup a new linux password store.

# setup password store
pass init YOU_GPG_KEY

# setup git
# create a private repo and add it to your password store
pass git remote add origin [email protected]:justmiles/myprivate-repo.git

# push your password store
pass git remote push origin master

Add your first password

pass insert Accounts/google.com

Pull the password back out

pass Accounts/google.com

Configure Browserpass

Install the Browserpass Chrome plugin and build the below helper service.

# configure browserpass
curl -fLO https://github.com/browserpass/browserpass-native/releases/download/3.0.6/browserpass-linux64-3.0.6.tar.gz
tar -xzvf browserpass-linux64-3.0.6.tar.gz
cd browserpass-linux64-3.0.6

make BIN=browserpass-linux64 configure
sudo make BIN=browserpass-linux64 install
cd /usr/lib/browserpass/
make hosts-chrome-user

Bonus: Import from another vendor

# for bitwarden, had to remove all ^@ characters
wget https://github.com/roddhjav/pass-import/releases/download/v2.6/pass-import-2.6.tar.gz
tar xzf pass-import-2.6.tar.gz
cd pass-import-2.6
make
sudo make install

Bonus: GUI for Pass

sudo apt-get install qtpass

Bonus: Android Setup

gpg --armor --export-secret-key 5C29A65CBB232AA48E88E765ADA5A1010797256A  > /keybase/private/justmiles/keybase.asc

Windows Specific Crap

# Export key 
export GPG_TTY=$(tty)
keybase pgp export -q $KEY_ID -s -o justmiles.key
 
 
# In Ubuntu Shell
cat  justmiles.key | gpg --allow-secret-key-import --import
curl -sf https://gobinaries.com/gopasspw/gopass | sh

gpg --list-keys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment