ejson
chezmoi includes support for ejson.
Structured data can be retrieved with the ejsonDecrypt
template function, for
example:
examplePassword = {{ (ejsonDecrypt "my-secrets.ejson").password }}
If you want to specify the private key to use for the decryption, structured
data can be retrieved with the ejsonDecryptWithKey
template function, for
example:
examplePassword = {{ (ejsonDecryptWithKey "my-secrets.ejson" "top-secret-key").password }}