Encrypt Tasks
River tasks to encrypt/decrypt files or JSON values.
Install
npm install -g river-tasks
Encrypted 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 encrypt
Decrypt
river decrypt
Internal 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
|