chest

Bash glue to encrypt and hide files
授权协议 MIT License
开发语言 SHELL
所属分类 应用工具、 终端/远程登录
软件类型 开源软件
地区 不详
投 递 者 杨经武
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Chest

Bash glue to encrypt and hide files

Chest allows you to encrypt any file/folder and move it to a hidden directory on your machine. When needed you can retrieve it from the chest into the current working directory.

Chest makes use of password based AES256 encryption with a strong key derivation function provided by gpg to make sure your data is secure.

Your chest can easily by synced between machines via any third party cloud storage providers such as Dropbox or Google Drive etc.

Why

I wanted something that was:

  • Highly secure to store stuff like Bitcoin private keys
  • Easily accessible from the CLI (quickly encrypt/decrypt)
  • Can handle directories or files
  • Sync-able between machines
  • Usable interactively or scriptable
  • Password based (keys are in my brain, not on my machine)
  • Keeps me completely in control of my data
  • Allows me to choose whether to store locally or replicate to the cloud/VPS etc
  • Simple and easy to understand source code
  • No crazy dependencies

Chest ticks all those boxes. It's under 300 lines of fairly simple Bash, and about 90% of that are just CLI helper methods. The core encryption logic is easily understandable and is only a handful of lines.

It's basically a shell script wrapper around tar | gpg so you don't have to hand type commands like:

# Encrypt secret-folder
tar -cvzf - "secret-folder" | gpg -c --cipher-algo AES256 > "secret-folder.tar.gz.gpg"

# Decrypt secret-folder
gpg -d "secret-folder.tar.gz.gpg" | tar -xvzf -

Usage

$ chest -h
chest 0.4.0

Usage: chest -e [folder|file]
       chest -d [key]

  -h            Help. Display this message and quit.
  -e            Encrypt data and send to chest.
  -d            Decrypt data from chest.
  -z            Compress (zip) data before sending to chest.
  -r            Remove original data after sending to chest.
  -l            List items in chest.
  -k [key]      Set key to save/retrieve.
  -p [password] Set password. (omit to be prompted)

Options

CHEST_DIR

The directory all of your encrypted data will be stored in.

Defaults to ~/.chest.

export CHEST_DIR="$HOME/.chest"

CHEST_CLEAR_PASSWORD_CACHE

By default, gpg will cache passwords for as long as the gpg agent is running. This means you don't need to keep re-entering the same password to decrypt the same file. This is useful for certain use cases but for storing highly sensitive data is probably not what you want. By default we reload the gpg agent each time you enter a password to ensure they aren't cached.

You can diable this by setting CHEST_CLEAR_PASSWORD_CACHE to false.

Defaults to true.

export CHEST_CLEAR_PASSWORD_CACHE="true"

Tips

Cloud Backup/Sync

As long as you're using strong passwords, it's safe to replicate your Chest to the cloud. Everything will be encrypted before it leaves your machine and the keys are safely stored in your brain.

To re-iterate, you must use a sufficiently random password for cloud backup to be safe. If you don't fully understand this, do not replicate your chest to third-party cloud providers.

For example to set this up with Dropbox, you could either do:

ln -s ~/Dropbox/chest ~/.chest

or

export CHEST_DIR="$HOME/Dropbox/chest"

Now your encrypted files will be safely replicated around the world on Dropbox's servers to prevent against data loss.

You can also do this across multiple machines to keep your Chest in sync between them.

Installation

macOS

brew install lukechilds/tap/chest

Linux

Just clone this repo and either copy/symlink chest to your PATH or run the script directly with ./chest. Requires gpg to be installed.

Windows

¯\_(ツ)_/¯

License

MIT © Luke Childs

  • chest - 必应词典 美[tʃest]英[tʃest] n.胸部;胸膛;有…胸的;胸部…的 网络胸围;箱子;胸腔 变形复数:chests;

  • 此段资料引用于“箱子 (Chest)”并与其保持同步更新。 编辑 箱子(Chest)是用来储存物品的方块,每个箱子最多可以装27组的物品。 如果两个箱子放在一起时会变为大箱子(BigChest),每个大箱子可以装最多54组物品。其中,最上面的三行是这个大箱子的西边或北边部分的箱子,下面三行是南方或东方的箱子。 如果箱子上面有不透明方块或豹猫时不能开启。箱子可以在它们的上面被堆放一个箱子,当箱子在打

  • general: wYes: '&a是' wNo: '&c否' none: '&c无' all: '&a所有' now: '&aNow' enabled: '&a已开启' disabled: '&c已关闭' others: '&f其他' unlimited: '&a无限制' online: '&a在线' previous: '&8上一页' role: owner: '&4所有者' admin: '

  • 引用自kaggle的代码 ,感谢Korra 传送门 一、以下代码我改动了一些参数得到如下结论(如果这个模型没有过拟合…): 1、 适当增加batch size大小可以提高训练精度,控制epoc为4,原作者使用了16的batch size训练得到了97.8的精度,使用128大小的batch size达到了99.06的精度,但是如果过度增加batch size,把batch size增加到256,训练

  • 作者:TXY 题目描述: Some brave warriors come to a lost village. They are very lucky and find a lot of treasures and a big treasure chest, but with angry zombies. The warriors are so brave that they decide to

相关阅读

相关文章

相关问答

相关文档