blob: 37a96b30d00d4ae84ca4af16fd955e63ebb35591 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
---@return string
local function getPassword()
local password = vim.b["password"]
if password == nil then
password = vim.fn.inputsecret("Enter password: ")
vim.b["password"] = password
end
return password
end
local ENCRYPTED_PREFIX = "# <<<encrypted>>>"
return { getPassword = getPassword, ENCRYPTED_PREFIX = ENCRYPTED_PREFIX }
|