sops

Encrypt and decrypt files in JSON, YAML, ENV, or binary formats

brewmacoslinux
Try with needOr install directly
Source

About

Editor of encrypted files

Commands

sops

Examples

Create and encrypt a new YAML secrets file$ sops secrets.yaml
Decrypt and view contents of an encrypted file$ sops -d secrets.yaml
Encrypt an existing JSON file in-place$ sops -e -i config.json