This Neovim plugin provides seamless integration for handling AGE encrypted files, specifically focusing on files with the .age
extension. It automates the encryption and decryption process, allowing for a smooth workflow within Neovim.
Features
- Automatically decrypts
.age
files upon opening. - Encrypts
.age
files before saving.
Using packer.nvim
use {
'histrio/age-secret.nvim',
config = function()
require('age_secret').setup({
-- Configuration options
})
end
}
To configure, set the AGE_RECIPIENT
and AGE_IDENTITY
environment variables in your shell or operating system.
Alternatively, you can configure these settings within Neovim:
require('age_secret').setup({
recipient = "age1..." -- Replace with your AGE recipient
identity = "~/age-key.txt" -- Replace with the path to your AGE secret key
})
- Open a
.age
file - it will be automatically decrypted. - Save a
.age
file - it will be automatically encrypted. - Change AGE recipient or identity dynamically:
:SetAgeRecipient age1...
:SetAgeIdentity ~/age-key.txt
Neovim 0.5 or later.
Rage installed and configured on your system.
Contributions are welcome! If you have a feature request, bug report, or suggestion, please open an issue on the GitHub repository.
This plugin is released under the MIT License.