A basic encryption utility
Project description
Phibes is a utility to keep your secrets (passwords, restore codes, etc.) in an encrypted storage location on your filesystem.
As this is an early work-in-progress, I would discourage the use of it as an actual single-storage of passwords you can't afford to lose.
Installation
pip install phibes
Basic usage
The basic usage command is phibes. Available subcommands are: init, status, delete, add, get, edit, list, and remove.
They each prompt for the file system path to the locker, defaulting to the current working directory. (This can also be passed with --path your/path)
They each prompt for password, with a repeat for confirmation prompt when initializing the locker.
It is crucial to never forget/lose your password, as it is irretrievable, and without it, nothing in your Locker will be accessible.
-
In a command shell, change your working directory to an empty folder where you want your locker to exist.
-
Initialize the locker:
phibes initYou will be prompted for the
crypt_id. This defaults to the current best available, which you should accept. -
Add an item to the locker:
phibes addYou will be prompted for the item name, and an optional template name.
The template name can be any named item already in your locker. If you provide a valid name, the contents of that item will be used for the initial contents of your new item. If you accept the default, "Empty", you will start with an empty document.
You will not be prompted for
editor, but you can pass it with the command, e.g.:phibes add --editor vimYou must otherwise have a valid editor set in one of the environment variables
PHIBES_EDITORorEDITOR.After you reply to all the prompts, your configured editor* will be launched, and when you save and exit, the contents of the temporary file will be encrypted and stored in a new item in your locker, and the temporary file deleted.
-
Edit an item in the locker:
phibes editYou will be prompted for an item name. If the item exists in the locker, your editor will be launched with the current content of the item. When you save and exit, the contents of the temporary file will be encrypted and the item in your locker updated, and the temporary file deleted.
-
Report an item in the locker:
phibes getYou will be prompted for an item name. If the item exists in the locker, the contents will be decrypted and reported to the console.
-
Report all items in the locker:
phibes listYou will be prompted for
Verbose. If you selectverbose, the full details (including decrypted content) of all items in the locker will be reported. Otherwise, only the names of all items in the locker will be reported. -
Remove an item from the locker:
phibes removeYou will be prompted for an item name. If the item exists in the locker, it will be removed.
-
Report on the locker:
phibes statusThe storage location, creation time, and crypt ID will be reported to the console.
-
Delete the locker:
phibes deleteThe locker will be deleted.
Advanced usage
The advanced usage command is phibesplus. Available subcommands are: create, info, delete, create-item, get-item, edit, list, delete-item, create-config, and update-config.
Advanced usage differs from basic usage in several important ways:
- Lockers have user-assigned names.
- Operations depend on a stored configuration.
- Multiple lockers can be stored in the same configured storage location.
-
Create a configuration
phibesplus create-configYou will be prompted for the location to save the new config file, and for relevant details to be stored in the config file.
- location of configuration file [default is user home directory]
- editor [default is from $EDITOR if it is set]
- storage location [default is user home directory/.phibes]
The file,
.phibes.cfg, is a simple json file that you can also edit directly.Each time you issue a command, the app will search for a config file as follows:
- path provided as part of the command (
--config) - user home directory
-
Update a configuration
phibesplus update-configHas the same prompts as
create-config, but expects the config file to already exist. -
Create a locker
phibesplus createYou will be prompted for a locker name and a password. It is crucial to never forget/lose these, as they are irretrievable, and without them, nothing in your Locker will be accessible.
-
Create an item in the locker
phibesplus create-item -
Edit an item in the locker
phibesplus edit -
Report an item in the locker
phibesplus get-item -
Report all items in the locker
phibesplus list -
Remove an item from the locker
phibesplus delete-item -
Report on the locker:
phibesplus info -
Delete the locker:
phibesplus delete
Editor
In the command-line client, addition/update of Items to a Locker is done by executing the add/edit commands, which will attempt to launch a configured editor, and store the encrypted contents of the file when you save and exit. (Some editors, like Atom, are problematic because they don't block python when they are invoked. We recommend configuring vim, emacs, or nano.)
There is no attempt made to confirm that what you've configured is valid prior to this execution.
Storage Path
This will be where the data you add is stored. When you issue a command, the app will use the storage from your configuration file.
When you use the CLI to create a config file, the default storage path is in the directory .phibes in the user's home directory.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Phibes-0.0.5.tar.gz.
File metadata
- Download URL: Phibes-0.0.5.tar.gz
- Upload date:
- Size: 43.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b9c989f626c1d87a31678b6ea87b8fcd51c39a2020cbbf2195969d46af83d84
|
|
| MD5 |
0d8e98cd9774f35a568d3605b56b23d1
|
|
| BLAKE2b-256 |
a9f422c5fa0b9f7101fd2b546b31b1d09749090b747f75acc3a122c38bd1f391
|
File details
Details for the file Phibes-0.0.5-py2.py3-none-any.whl.
File metadata
- Download URL: Phibes-0.0.5-py2.py3-none-any.whl
- Upload date:
- Size: 55.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97f7c2caf0295457324f98cd994e0e2a8fb1d73b877f6623274291fc2d832d37
|
|
| MD5 |
745b33a63aa1ddd99b28a757da60a454
|
|
| BLAKE2b-256 |
dbb0b16f1269102b2971a15052d1f24065a443381ea1b2e5fe55663ed0469e86
|