3 ms·
This is a neat idea. I wrote something similar recently but with the aim of encrypting sensitive values (like API keys) in YAML config files, for similar reason
by nnf 5y ago
This is a neat idea. I wrote something similar recently but with the aim of encrypting sensitive values (like API keys) in YAML config files, for similar reasons — so people without the key can see most of the config but not the secret parts. The script is then used by an automated deployment process to decrypt the sensitive values when the config file is moved into place.
- higgins 5y agoNice! You can use it as a cli tool too: ``` # Create a stand-alone symmetric key for use outside of git privatize create-key symmetric.key # Encrypt a file and pipe to stdout cat someFileToPartiallyEncrypt | privatize encrypt symmetric.key # Decrypt a file and pipe to stdout cat someFileToPartiallyDecrypt | privatize decrypt symmetric.key ``` Open to pull requests if you want to adapt to your use cases too