0.0.1 • Published 7 years ago
lock-me-out-cli v0.0.1
lock-me-out-cli
Temporarily lock yourself out, by encrypting e.g. your netflix password for a week
Leveraging GPG, this cli allows you to forfeit something temporarily.
Example: Lock-up your netflix password because you need concentrate for a hour:
$ lock-me-out encrypt --name "netflix" --date "today +1" --value "mypassword"Install
$ npm install lock-me-out-cliSetup:
$ lmo setupUsage
You can either use lock-me-out or lmo to access the cli.
$ lmo --help
lock-me-out:
Usage
$ lmo <command> <options>
Commands
encrypt, en Encrypt value
decrypt, de Decrypt value
list, ls List encrypted values
Options
--name, -n Name to identify the encrypted value
--date, -d When the data will be decryptable
--value, -v Data to be encrypted
Examples
$ lmo encrypt -s netflix -d "tomorrow 9" -v mypassword
$ lmo encrypt -s youtube -d nextweek -v yt123
$ lmo decrypt netflixDates/times
If no time is specified, the current time will be used.
For specifying dates/times you have multiple options:
Dates:
tod/todaytom/tomorrow+N- +5 (days)Nday/Ndays- 8daysnextweek/next-weekNweek/Nweeks- 7weeksYYYY-MM-DD/MM-DD/DD- 2018-08-13, 08-13, 13
Times:
now+N- +2 (hours)-N- -2 (hours)HH:MM/HH- 12:55, 12
The date can not be omitted: --date "today +2" not --date "+2".
Test
$ npm run testLicense
MIT © Jonathan Neidel
0.0.1
7 years ago