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