@decryption/cosmology-compat 0.4.1 → 0.4.2
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.
- package/README.md +19 -0
- package/package.json +3 -3
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.
|
|
3
|
+
"version": "0.4.2",
|
|
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",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@decryption/base": "0.4.0",
|
|
40
40
|
"@decryption/ciphers": "0.4.0",
|
|
41
|
-
"@decryption/core": "0.5.
|
|
41
|
+
"@decryption/core": "0.5.1",
|
|
42
42
|
"@decryption/hashes": "0.4.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"crypto-js": "^4.2.0",
|
|
47
47
|
"makage": "0.3.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "d29d5f2e516edf049a285b30f868360d3b996db0"
|
|
50
50
|
}
|