Skip to content

Personal use, password export for applications. Quick and dirty implemenation for password setting and retrieval.

License

Notifications You must be signed in to change notification settings

jmuldoon/go-keychain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-keychain

Personal use, password export for applications. Quick and dirty implemenation for password setting and retrieval. Plus quick use case.

Example cli arguments

Arguments Values Description
account string user account (required)
group string user access group
data string password/encrypted part (required if writing)
generate integer integer length of the password string to be generated
label string name (required)
service string where (required)
read bool defaults false. If you want to read must be specified

Example useage

go-keychain -account username -service testservice -label testlabel -data tests123
go-keychain -account username -service testservicepath2 -label testlabel -generate 32

.bashrc / .bash_profile

Please add the following line to your bash profile so that when loaded you can automatically export the default base password you'd like.

export DEFAULT_KEY_NAME=$(go-keychain -account username -service testservice -label testlabel -read)

Makefile use

The following make commands executed from the top level directory will enable the building of the binary. Pre-requisite is to have go installed. This was built using go version go1.9 darwin/amd64, but should be cross compilable with gox if needed.

make all

Please see for a complete listing the below command.

make help

Docker-Compose

The following command will allow one to pull and bring up a container that will allow them to work directly with the binary

docker-compose run go /bin/sh

About

Personal use, password export for applications. Quick and dirty implemenation for password setting and retrieval.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published