aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorDavid Elentok <3david@gmail.com>2024-05-14 18:21:08 +0300
committerDavid Elentok <3david@gmail.com>2024-05-14 18:21:08 +0300
commitcf0eab467d5473de5312da6a95f875c4ae971542 (patch)
treeaa87530062058bf5a128c4be6769e7dd6a9caafe /README.md
parenta805d34f123bc8add01bd44ad28f0baf57710083 (diff)
downloadencrypt.nvim-cf0eab467d5473de5312da6a95f875c4ae971542.tar.gz
Update readme
Diffstat (limited to 'README.md')
-rw-r--r--README.md15
1 files changed, 13 insertions, 2 deletions
diff --git a/README.md b/README.md
index 45a94b7..4901095 100644
--- a/README.md
+++ b/README.md
@@ -3,8 +3,8 @@
This is a simple alternative to the "X" command that was removed from Neovim.
Disclaimer: It's probably not the most secure implementation (if such thing is
-even possible) but it gives the ability to edit files that will be stored in
-encrypted on the disk.
+even possible) but it gives the ability to edit files while they are stored
+in an encrypted format on the disk.
## Usage
@@ -23,6 +23,17 @@ Add the following to your package manager:
{ "elentok/encrypt.nvim", opts = {} },
```
+## Manual decryption
+
+To decrypt a file that was encrypted using `decrypt.nvim` without the plugin
+just run:
+
+```
+cat encrypted.txt \
+ | base64 --decode \
+ | openssl enc -d -aes-256-cbc -pbkdf2 -salt -in - -out - -k {PASSWORD}
+```
+
## TODO
- [ ] Store the password in a local scope in the plugin instead of as a buffer