feat: v0.9.0, support secure editor
This commit is contained in:
12
README.md
12
README.md
@@ -24,6 +24,18 @@ Compile only encrypt:
|
||||
cargo build --release --no-default-features
|
||||
```
|
||||
|
||||
Edit encrypted file:
|
||||
```shell
|
||||
tiny-encrypt decrypt --edit-file sample.txt.tinyenc
|
||||
```
|
||||
Read environment `EDITOR` or `SECURE_EDITOR` to edit file, `SECURE_EDITOR` write encrypted file to temp file.
|
||||
|
||||
Secure editor command format:
|
||||
```shell
|
||||
$SECURE_EDITOR <temp-file-name> "aes-256-gcm" <temp-key-hex> <temp-nonce-hex>
|
||||
```
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
Encrypt config `~/.tinyencrypt/config-rs.json`:
|
||||
|
||||
Reference in New Issue
Block a user