@decryption/cosmology-compat 0.4.1 → 0.4.3

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 +19 -0
  2. package/package.json +14 -16
package/README.md CHANGED
@@ -8,6 +8,9 @@
8
8
  <a href="https://github.com/constructive-io/decryption/actions/workflows/ci.yml">
9
9
  <img height="20" src="https://github.com/constructive-io/decryption/actions/workflows/ci.yml/badge.svg" />
10
10
  </a>
11
+ <a href="https://github.com/constructive-io/decryption/blob/main/LICENSE">
12
+ <img height="20" alt="MIT license" src="https://img.shields.io/badge/license-MIT-blue.svg" />
13
+ </a>
11
14
  <a href="https://www.npmjs.com/package/@decryption/cosmology-compat"><img height="20" src="https://img.shields.io/github/package-json/v/constructive-io/decryption?filename=packages%2Fcosmology-compat%2Fpackage.json"/></a>
12
15
  </p>
13
16
 
@@ -16,6 +19,12 @@
16
19
  > stays readable. Do not use it to encrypt anything new — use
17
20
  > [`@decryption/core`](../core) instead.
18
21
 
22
+ ## Installation
23
+
24
+ ```bash
25
+ npm install @decryption/cosmology-compat
26
+ ```
27
+
19
28
  ## Why it is weak
20
29
 
21
30
  The old scheme was `CryptoJS.AES.encrypt(text, SHA256(salt).toString())`, which means:
@@ -55,6 +64,16 @@ cryptoJsDecrypt(base64Ciphertext, passphrase); // throws instead of returning ''
55
64
  The test suite encrypts with the real `crypto-js` package and decrypts with this one (and vice
56
65
  versa), so the byte compatibility claim is checked on every run rather than assumed.
57
66
 
67
+ ## Credits
68
+
69
+ **🛠 Built by the [Constructive](https://constructive.io) team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).**
70
+
71
+ ## Disclaimer
72
+
73
+ AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
74
+
75
+ No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.
76
+
58
77
  ---
59
78
 
60
79
  ## Development
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decryption/cosmology-compat",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "Read data written by the cosmology CLI encryption scheme, and upgrade it",
5
5
  "author": "Constructive <developers@constructive.io>",
6
6
  "main": "index.js",
@@ -19,15 +19,6 @@
19
19
  "bugs": {
20
20
  "url": "https://github.com/constructive-io/decryption/issues"
21
21
  },
22
- "scripts": {
23
- "copy": "makage assets",
24
- "clean": "makage clean",
25
- "prepublishOnly": "npm run build",
26
- "build": "makage build",
27
- "lint": "eslint . --fix",
28
- "test": "jest",
29
- "test:watch": "jest --watch"
30
- },
31
22
  "keywords": [
32
23
  "cryptojs",
33
24
  "cosmology",
@@ -36,15 +27,22 @@
36
27
  "migration"
37
28
  ],
38
29
  "dependencies": {
39
- "@decryption/base": "0.4.0",
40
- "@decryption/ciphers": "0.4.0",
41
- "@decryption/core": "0.5.0",
42
- "@decryption/hashes": "0.4.0"
30
+ "@decryption/ciphers": "0.4.1",
31
+ "@decryption/base": "0.4.1",
32
+ "@decryption/core": "0.5.2",
33
+ "@decryption/hashes": "0.4.1"
43
34
  },
44
35
  "devDependencies": {
45
36
  "@types/crypto-js": "^4.2.2",
46
37
  "crypto-js": "^4.2.0",
47
38
  "makage": "0.3.0"
48
39
  },
49
- "gitHead": "9f301de50e0b3f40746c6d23ba5ab8d343869efe"
50
- }
40
+ "scripts": {
41
+ "copy": "makage assets",
42
+ "clean": "makage clean",
43
+ "build": "makage build",
44
+ "lint": "eslint . --fix",
45
+ "test": "jest",
46
+ "test:watch": "jest --watch"
47
+ }
48
+ }