Encrypted private diary.
You can use your computer to keep a private diary. When saved with a password, the diary can also be kept from prying eyes.
Bash Diary help the user select a date and create a daily entry for the date and save the entry as a file under a new name, that is using a date-time stamp along with a password. The user can read previous entries.
Your password locked in .pss.zip
with your password. When you enter the true password it will be unlock else you
will be trapped in that terminal forever.
And your diaries is locked in the .daybook.zip
it will unlock with your .pss
content.
First, install dialog
:
sudo apt-get update
sudo apt-get install dialog
You can install dialog
with Homebrew:
brew install dialog
yum install dialog
./dia.sh [optional_name]
18-02-2018
18-02-2018-(optional_name)
If it is your first entry the script, you will create the password.
Note: If you enter the wrong password you will have a 3 option;
- You will close the terminal.
- You will keep it pressed ctrl/cmd + C.
- Or you will be trapped in that terminal forever.
You choose the day and then you will have a text file which name is the date of your choose day, and if you have a default editor
it will open with it, if is not file open with nano
.
Then save the file and close the editor. And again everything will be locked.