Back to Chezmoi

Encryption

assets/chezmoi.io/docs/user-guide/encryption/index.md

2.70.2659 B
Original Source

Encryption

chezmoi supports encrypting files with age, git-crypt, gpg, and transcrypt.

Encrypted files are stored in ASCII-armored format in the source directory with the encrypted_ attribute and are automatically decrypted when needed.

Add files to be encrypted with the --encrypt flag, for example:

sh
chezmoi add --encrypt ~/.ssh/id_rsa

chezmoi edit will transparently decrypt the file before editing and re-encrypt it afterwards.