aboutsummaryrefslogtreecommitdiff
path: root/lua/encrypt/decrypt.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/encrypt/decrypt.lua')
-rw-r--r--lua/encrypt/decrypt.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/encrypt/decrypt.lua b/lua/encrypt/decrypt.lua
index 72e93c3..de49019 100644
--- a/lua/encrypt/decrypt.lua
+++ b/lua/encrypt/decrypt.lua
@@ -5,7 +5,7 @@ local helpers = require("encrypt.helpers")
---@param password string
local function decrypt_lines(lines, password)
return vim.fn.systemlist(
- "base64 --decode | openssl enc -d -aes-256-cbc -pbkdf2 -salt -in - -out - -k " .. password,
+ "base64 --decode | openssl enc -d -aes-256-cbc -pbkdf2 -salt -in - -out - -k " .. vim.fn.shellescape(password),
lines
)
end