Skip to content

Temporarily lock yourself out, by encrypting e.g. your netflix password for a week

License

Notifications You must be signed in to change notification settings

jneidel/lock-me-out-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lock-me-out-cli

Temporarily lock yourself out, by encrypting e.g. your netflix password for a week

User tested gnu/linux Npm Downloads License MIT Code Style Custom

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 Version

$ npm install lock-me-out-cli

Setup:

$ lmo setup

Usage

You can either use lock-me-out or lmo to access the cli.

$ lmo --help

  lock-me-out: 

  Usage
    $ lmo <command> <options>

  Commands
    en, encrypt Encrypt value
    de, decrypt Decrypt value
    ls, list    List encrypted values
        setup   Setup ~/.config dir

  Options
    -n, --name  Name to identify the encrypted value
    -d, --date  When the data will be decryptable
    -v, --value Data to be encrypted

  Examples
    $ lmo encrypt -n netflix -d "tomorrow 9" -v mypassword
    $ lmo encrypt -n youtube -d nextweek -v yt123

    $ lmo decrypt netflix

Dates/times

If no time is specified, the current time will be used.

For specifying dates/times you have multiple options:

Dates:

  • tod/today
  • tom/tomorrow
  • +N - +5 (days)
  • Nday/Ndays - 8days
  • nextweek/next-week
  • Nweek/Nweeks - 7weeks
  • YYYY-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".

Reset

To reset config, data, gpg keys, etc.:

$ rm -rf ~/.config/lock-me-out; lmo setup;

Related

License

MIT © Jonathan Neidel

About

Temporarily lock yourself out, by encrypting e.g. your netflix password for a week

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published