Lockedbox is a small tool to make it very difficult to access a secret (e.g. Steam or Netflix password), except at a given time of day or week.
This can be useful if you need a little help in being disciplined around usage of certain services (e.g. gaming, entertainment, etc).
If you wish to build lockedbox for yourself, you need golang; https://golang.org/doc/install.
NOTE: The program has the blocked/unblocked times hard-coded into it. You must change these in the lockedbox.go
file first before building.
NOTE: The key used to encrypt/decrypt your secrets is generated mathematically by a formula on line 66. Tweak these values slightly after building to ensure you cannot modify the program after encryption to easily decrypt your secrets.
- Open lockedbox.go
- Go to line 46 ("Decryption only allowed at certain times")
- Adjust the logic to suit your needs (e.g. I want it allowed every day after 8PM)
- Run build in terminal:
go build
- Adjust values on line 66 slightly, save file
This should create an executable suitable for usage on your system.
lockedbox [encrypt|decrypt] [secret|cypher]
lockedbox encrypt MySteamPassword
This will encrypt your secret.
WARNING: Please do not lose your encrypted secret.
WARNING: Please test decryption and give a backup to a family member or friend before deleting your unecrypted copy of the secret
On the configured days and hours, you will be able to decrypt your secret:
lockedbox decrypt 3423-fsdf3-sdfaerASDGjhasgdhjsdagsda
MIT. See LICENSE for details.