The attached Go script is a minimal secret management utility to securely note personal data such as usernames & passwords.
The application provides read-write interface to work with space-separated key value
lines using commands get <key-prefix>
, set <key> <value>
, del <key>
, show
, list
, save
, quit
.
The application requires a central key on startup, & loads any previously saved data. The plain text & central key stay in process memory, and only AES-256 encrypted cipher text is written to storage. The [latest] cipher text can be replicated across devices or uploaded to personal cloud drive.
git clone https://gist.github.com/9e41cec4cd4629f6e7335164a2d8ae71.git crypt && cd crypt
docker run --name crypt -itd -v ./crypt.go:/root/crypt.go -v ./data:/root/data golang
docker exec -it crypt go run /root/crypt.go