@sequencemedia/crypto 1.1.6 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -58,10 +58,12 @@ source ./crypto.sh
58
58
  Requires `CRYPTO_KEY` as a _variable_ in the Bash environment and a file path to _encrypt_
59
59
 
60
60
  ```bash
61
+ CRYPTO_KEY='secret'
61
62
  encrypted_file_data=$(encrypt "./file.txt")
62
63
  ```
63
64
 
64
65
  ```bash
66
+ CRYPTO_KEY='secret'
65
67
  encrypt "./file.txt" > "./encrypted.txt"
66
68
  ```
67
69
 
@@ -70,10 +72,12 @@ encrypt "./file.txt" > "./encrypted.txt"
70
72
  Requires `CRYPTO_KEY` as a _variable_ in the Bash environment and a file path to _decrypt_
71
73
 
72
74
  ```bash
75
+ CRYPTO_KEY='secret'
73
76
  file_data=$(decrypt "./encrypted.txt")
74
77
  ```
75
78
 
76
79
  ```bash
80
+ CRYPTO_KEY='secret'
77
81
  decrypt "./encrypted.txt" > "./file.txt"
78
82
  ```
79
83
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sequencemedia/crypto",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "main": "./lib/index.cjs",
5
5
  "type": "module",
6
6
  "types": "./crypto.d.ts",