Skip to main content

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

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

xontrib-history-encrypt-0.0.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

xontrib_history_encrypt-0.0.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page