Back to Chezmoi

ejson

assets/chezmoi.io/docs/user-guide/password-managers/ejson.md

2.70.2533 B
Original Source

ejson

chezmoi includes support for ejson.

Structured data can be retrieved with the ejsonDecrypt template function, for example:

text
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:

text
examplePassword = {{ (ejsonDecryptWithKey "my-secrets.ejson" "top-secret-key").password }}