encrypt-tasks
v0.8.37
Published
Task Env tasks to encrypt/decrypt files or JSON values
Readme
Encrypt Tasks
River tasks to encrypt/decrypt files or JSON values.
Install
npm install -g river-tasksEncrypted JSON format
Encrypt/decrypt tasks look for encrypted JSON values in the default store.
Prepend string values with <~ to encrypt them:
{
"secret": "<~Encrypt this value!"
}Encrypt
river encryptDecrypt
river decryptInternal config
Running encrypt for the first time creates encryptTasks.json in the default store:
| Attribute | Type | Description |
| --------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
| files | Array.<String> | Paths of files to encrypt (relative to the default store, can be glob) |
| keyPath | String | Path to "private key" (password hash) |
| ivs | Object.<String, String> | Initialization vectors for each file in files |
