@runforest/encrypt
v2.1.0
Published
Allows convertiv to encrypt files that shouldn't be stored in plaintext in a repo
Downloads
42
Readme
This file expects a public key to exist in the project. It uses that public key to encrypt all the files, or files of a particular pattern in a directory with the expectation that the CI process contains the tooling and key to properly reverse the encryption.
This is especially useful for confidential data like certs and keys for servers.
Config:
{
encryptDir: "path to files to encrypt, as globby regex",
publicKey: "the path to the key that should be used for rsa encryption. Should be in the project",
extension: "the type of file that should be encrypted. Typically .pem",
}