History backend that can encrypt the xonsh shell commands history.
Project description
History backend that can encrypt the xonsh shell commands history.
If you like the idea click ⭐ on the repo and tweet now.
Installation
To install use pip:
xpip install xontrib-history-encrypt
# or: xpip install -U git+https://github.com/anki-code/xontrib-history-encrypt
Usage
xontrib load history_encrypt
# Now your commands will be managed by xontrib-history-encrypt.
history info
# backend: xontrib-history-encrypt
# sessionid: 374eedc9-fc94-4d27-9ab7-ebd5a5c87d12
# filename: /home/user/.local/share/xonsh/xonsh-history-encrypt.txt
# commands: 1
Encryption type
You can set the encryption type before loading the xontrib:
-
$XONSH_HISTORY_ENCRYPT_TYPE = 'base64'
(default) - command's text encoding but without encryption. It can save from thoughtless full file system scanning for keywords (i.e. password, key) as well as the reading by not experienced user who trying to read history file. -
More strong solutions are in the future. Feel free to help.
Known issues
Work in progress
The xontrib now is in proof of concept stage and you can faced with speed issues or another. Your thought and PRs are appreciated.
The history will be not saved in case of xonsh crash
The current implementation of history management is simple and when xonsh crash the history will be lost too.
Use history flush
command to force writing to the disk before experiments.
Credits
- This package is the part of ergopack - the pack of ergonomic xontribs.
- This package was created with xontrib cookiecutter template.
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
Hashes for xontrib-history-encrypt-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a4fc40d16539b045766dfbd3ad89a6a31dd19ed21c3296f0becfa5e40023b5b |
|
MD5 | 96612029505b1a4b955ff52b921a9f9e |
|
BLAKE2b-256 | 3fdbaf89c600dd5810b5d4747c0cf01dd515293ca3e8c440f71673dc82d546f3 |
Hashes for xontrib_history_encrypt-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02819387b731e7d345b902359cec98b676df34b04b3381e9a1ecf12770f89875 |
|
MD5 | 9322178857b3f4ae97958ae2f36dd9e4 |
|
BLAKE2b-256 | 921905588813203d7f86e2902282e60b603f53826e5d36398bea75d967037362 |