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