Skip to content

Simple password store for shell scripts and command line

Notifications You must be signed in to change notification settings

kosalaat/pass_store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

How to Use

From bash, source the passstore.sh file.

git clone https://github.com/kosalaat/pass_store.git
cd pass_store
. ./passstore.sh

Once this is sourced, you can use the two functions ps_encrypt and ps_decrypt.

Encrypting a password

ps_encrypt "my awesome password"
kqwfd7Pryamn99/FcPfL8oYaqrLwdMMRTZCSauqMgsw=

To decrypt

ps_decrypt "kqwfd7Pryamn99/FcPfL8oYaqrLwdMMRTZCSauqMgsw="

In a script

. /path/to/pass_store/passstore.sh

mypass=$(ps_decrypt kqwfd7Pryamn99/FcPfL8oYaqrLwdMMRTZCSauqMgsw=)

Under the hood

When the passstore.sh script is sourced for the first time, creates the random key which will be used to encrypt with. You can find these files under ~/vault/keystore/aeskey.key.

About

Simple password store for shell scripts and command line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages