https://github.com/jneidel/lock-me-out-cli
Temporarily lock yourself out, by encrypting e.g. your netflix password for a week
https://github.com/jneidel/lock-me-out-cli
gpg netflix-password node-module
Last synced: 11 months ago
JSON representation
Temporarily lock yourself out, by encrypting e.g. your netflix password for a week
- Host: GitHub
- URL: https://github.com/jneidel/lock-me-out-cli
- Owner: jneidel
- License: mit
- Created: 2018-07-25T16:14:37.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-13T10:58:18.000Z (about 7 years ago)
- Last Synced: 2025-07-03T00:13:25.603Z (11 months ago)
- Topics: gpg, netflix-password, node-module
- Language: JavaScript
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# lock-me-out-cli
> Temporarily lock yourself out, by encrypting e.g. your netflix password for a week

[](https://www.npmjs.com/package/lock-me-out-cli)
[](https://github.com/jneidel/lock-me-out-cli/blob/master/license)
[](https://github.com/jneidel/dotfiles/blob/master/.eslintrc)
Leveraging [GPG](https://gnupg.org/), this cli allows you to forfeit something temporarily.
Example: Lock-up your netflix password because you need concentrate for a hour:
```zsh
$ lock-me-out encrypt --name "netflix" --date "today +1" --value "mypassword"
```
## Install
[](https://www.npmjs.com/package/lock-me-out-cli)
```
$ 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
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.:
```zsh
$ rm -rf ~/.config/lock-me-out; lmo setup;
```
## Related
- [jneidel/lock-me-out](https://github.com/jneidel/lock-me-out): Webapp of this cli.
- [jneidel/lock-me-out-api](https://github.com/jneidel/lock-me-out-api): API for this module.
## License
MIT © [Jonathan Neidel](https://jneidel.com)