This is a program to write aes encrypted daily journal entries. One entry can be made every day, and that entry can only be edited during the day it's created.
In order to secure your entries you must use a 32-bit passphrase that can either be entered upon starting the program, or saved to a file at .internal/.passphrase
.
This passphrase will be used for all the files in the /entries
directory, so without it none can be decrypted.
Steps
- Download and extract release archive.
- Run with
go run cmd/journal/main.go
- Choose a passphrase.
- Either type in a 32-character passphrase when prompted.
- Or store a 32-character long passphrase in the project directory in a file called
.internal/.passphrase
.- If the stored passphrase is less than 32 characters, you will be prompted for the remaining bytes. This can be used to set up a "pin" by leaving the last few bytes out of the
.passphrase
file so you are still required to provide a short password whenever starting the program, but do not have to type the whole 32-character passphrase every time.
- If the stored passphrase is less than 32 characters, you will be prompted for the remaining bytes. This can be used to set up a "pin" by leaving the last few bytes out of the
- Choose
w
to create your first entry. - Open
entries/editor
to write your entry, save, then press enter on terminal.- This will delete the editor file and save it's encrypted contents into a timestamped entry file in
entries/
.
- This will delete the editor file and save it's encrypted contents into a timestamped entry file in
- To read your entries, type
r
instead ofw
after creating your first entry.