cipher-kit 2.1.3 → 3.0.0
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 +324 -434
- package/dist/chunk-3A4RTUKO.cjs +509 -0
- package/dist/chunk-3A4RTUKO.cjs.map +1 -0
- package/dist/chunk-7254PEID.cjs +502 -0
- package/dist/chunk-7254PEID.cjs.map +1 -0
- package/dist/chunk-GL32EZRA.js +475 -0
- package/dist/chunk-GL32EZRA.js.map +1 -0
- package/dist/chunk-IY6XGUYO.js +494 -0
- package/dist/chunk-IY6XGUYO.js.map +1 -0
- package/dist/chunk-VCBHSRCS.cjs +523 -0
- package/dist/chunk-VCBHSRCS.cjs.map +1 -0
- package/dist/chunk-X6MX4NDE.js +478 -0
- package/dist/chunk-X6MX4NDE.js.map +1 -0
- package/dist/export-B-3CCZIO.d.cts +389 -0
- package/dist/export-BPo6yPV-.d.ts +389 -0
- package/dist/export-C0_UEEg8.d.ts +396 -0
- package/dist/export-DPuocAr3.d.cts +396 -0
- package/dist/index.cjs +11 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -40
- package/dist/index.d.ts +11 -40
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/node.cjs +39 -35
- package/dist/node.d.cts +3 -3
- package/dist/node.d.ts +3 -3
- package/dist/node.js +2 -2
- package/dist/validate-vDTesb-X.d.cts +195 -0
- package/dist/validate-vDTesb-X.d.ts +195 -0
- package/dist/web-api.cjs +39 -35
- package/dist/web-api.d.cts +2 -3
- package/dist/web-api.d.ts +2 -3
- package/dist/web-api.js +2 -2
- package/package.json +82 -92
- package/dist/chunk-BMX42IZM.cjs +0 -623
- package/dist/chunk-BMX42IZM.cjs.map +0 -1
- package/dist/chunk-HTRGOBZF.cjs +0 -169
- package/dist/chunk-HTRGOBZF.cjs.map +0 -1
- package/dist/chunk-LU7QOSQH.js +0 -141
- package/dist/chunk-LU7QOSQH.js.map +0 -1
- package/dist/chunk-S6SNCTU6.js +0 -485
- package/dist/chunk-S6SNCTU6.js.map +0 -1
- package/dist/chunk-T36BEDPY.js +0 -598
- package/dist/chunk-T36BEDPY.js.map +0 -1
- package/dist/chunk-ZNM5M6RD.cjs +0 -514
- package/dist/chunk-ZNM5M6RD.cjs.map +0 -1
- package/dist/export-BaM_OTFk.d.ts +0 -573
- package/dist/export-CCTGAosO.d.ts +0 -572
- package/dist/export-FYHgb-8E.d.cts +0 -572
- package/dist/export-KFT0YyMg.d.cts +0 -573
- package/dist/validate-lkJAHCeJ.d.cts +0 -399
- package/dist/validate-lkJAHCeJ.d.ts +0 -399
package/dist/web-api.cjs
CHANGED
|
@@ -1,129 +1,133 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk7254PEID_cjs = require('./chunk-7254PEID.cjs');
|
|
4
|
+
var chunkVCBHSRCS_cjs = require('./chunk-VCBHSRCS.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "convertBytesToStr", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk7254PEID_cjs.convertBytesToStr; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "convertEncoding", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk7254PEID_cjs.convertEncoding; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "convertStrToBytes", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk7254PEID_cjs.convertStrToBytes; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "createSecretKey", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk7254PEID_cjs.createSecretKey; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "decrypt", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk7254PEID_cjs.decrypt; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "decryptObj", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk7254PEID_cjs.decryptObj; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "encrypt", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk7254PEID_cjs.encrypt; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "encryptObj", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunk7254PEID_cjs.encryptObj; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "generateUuid", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunk7254PEID_cjs.generateUuid; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "hash", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk7254PEID_cjs.hash; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "hashPassword", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunk7254PEID_cjs.hashPassword; }
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "isWebSecretKey", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return chunk7254PEID_cjs.isWebSecretKey; }
|
|
51
55
|
});
|
|
52
56
|
Object.defineProperty(exports, "tryConvertBytesToStr", {
|
|
53
57
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunk7254PEID_cjs.tryConvertBytesToStr; }
|
|
55
59
|
});
|
|
56
60
|
Object.defineProperty(exports, "tryConvertEncoding", {
|
|
57
61
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk7254PEID_cjs.tryConvertEncoding; }
|
|
59
63
|
});
|
|
60
64
|
Object.defineProperty(exports, "tryConvertStrToBytes", {
|
|
61
65
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunk7254PEID_cjs.tryConvertStrToBytes; }
|
|
63
67
|
});
|
|
64
68
|
Object.defineProperty(exports, "tryCreateSecretKey", {
|
|
65
69
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunk7254PEID_cjs.tryCreateSecretKey; }
|
|
67
71
|
});
|
|
68
72
|
Object.defineProperty(exports, "tryDecrypt", {
|
|
69
73
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunk7254PEID_cjs.tryDecrypt; }
|
|
71
75
|
});
|
|
72
76
|
Object.defineProperty(exports, "tryDecryptObj", {
|
|
73
77
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunk7254PEID_cjs.tryDecryptObj; }
|
|
75
79
|
});
|
|
76
80
|
Object.defineProperty(exports, "tryEncrypt", {
|
|
77
81
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunk7254PEID_cjs.tryEncrypt; }
|
|
79
83
|
});
|
|
80
84
|
Object.defineProperty(exports, "tryEncryptObj", {
|
|
81
85
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunk7254PEID_cjs.tryEncryptObj; }
|
|
83
87
|
});
|
|
84
88
|
Object.defineProperty(exports, "tryGenerateUuid", {
|
|
85
89
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunk7254PEID_cjs.tryGenerateUuid; }
|
|
87
91
|
});
|
|
88
92
|
Object.defineProperty(exports, "tryHash", {
|
|
89
93
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunk7254PEID_cjs.tryHash; }
|
|
91
95
|
});
|
|
92
96
|
Object.defineProperty(exports, "tryHashPassword", {
|
|
93
97
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunk7254PEID_cjs.tryHashPassword; }
|
|
95
99
|
});
|
|
96
|
-
Object.defineProperty(exports, "
|
|
100
|
+
Object.defineProperty(exports, "tryVerifyPassword", {
|
|
97
101
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunk7254PEID_cjs.tryVerifyPassword; }
|
|
99
103
|
});
|
|
100
|
-
Object.defineProperty(exports, "
|
|
104
|
+
Object.defineProperty(exports, "verifyPassword", {
|
|
101
105
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunk7254PEID_cjs.verifyPassword; }
|
|
103
107
|
});
|
|
104
|
-
Object.defineProperty(exports, "
|
|
108
|
+
Object.defineProperty(exports, "ENCRYPTED_REGEX", {
|
|
105
109
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkVCBHSRCS_cjs.ENCRYPTED_REGEX; }
|
|
107
111
|
});
|
|
108
112
|
Object.defineProperty(exports, "matchEncryptedPattern", {
|
|
109
113
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkVCBHSRCS_cjs.matchEncryptedPattern; }
|
|
111
115
|
});
|
|
112
116
|
Object.defineProperty(exports, "parseToObj", {
|
|
113
117
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkVCBHSRCS_cjs.parseToObj; }
|
|
115
119
|
});
|
|
116
120
|
Object.defineProperty(exports, "stringifyObj", {
|
|
117
121
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkVCBHSRCS_cjs.stringifyObj; }
|
|
119
123
|
});
|
|
120
124
|
Object.defineProperty(exports, "tryParseToObj", {
|
|
121
125
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkVCBHSRCS_cjs.tryParseToObj; }
|
|
123
127
|
});
|
|
124
128
|
Object.defineProperty(exports, "tryStringifyObj", {
|
|
125
129
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkVCBHSRCS_cjs.tryStringifyObj; }
|
|
127
131
|
});
|
|
128
132
|
//# sourceMappingURL=web-api.cjs.map
|
|
129
133
|
//# sourceMappingURL=web-api.cjs.map
|
package/dist/web-api.d.cts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { C as CipherEncoding,
|
|
2
|
-
export {
|
|
3
|
-
import 'node:crypto';
|
|
1
|
+
export { C as CipherEncoding, a as CreateSecretKeyOptions, D as DecryptOptions, b as DigestAlgorithm, E as ENCRYPTED_REGEX, c as Encoding, d as EncryptOptions, e as EncryptionAlgorithm, f as ErrorStruct, H as HashOptions, g as HashPasswordOptions, R as Result, V as VerifyPasswordOptions, m as matchEncryptedPattern, p as parseToObj, s as stringifyObj, t as tryParseToObj, h as tryStringifyObj } from './validate-vDTesb-X.cjs';
|
|
2
|
+
export { W as WebSecretKey, c as convertBytesToStr, a as convertEncoding, b as convertStrToBytes, d as createSecretKey, e as decrypt, f as decryptObj, g as encrypt, h as encryptObj, i as generateUuid, j as hash, k as hashPassword, l as isWebSecretKey, t as tryConvertBytesToStr, m as tryConvertEncoding, n as tryConvertStrToBytes, o as tryCreateSecretKey, p as tryDecrypt, q as tryDecryptObj, r as tryEncrypt, s as tryEncryptObj, u as tryGenerateUuid, v as tryHash, x as tryHashPassword, y as tryVerifyPassword, z as verifyPassword } from './export-B-3CCZIO.cjs';
|
package/dist/web-api.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { C as CipherEncoding,
|
|
2
|
-
export {
|
|
3
|
-
import 'node:crypto';
|
|
1
|
+
export { C as CipherEncoding, a as CreateSecretKeyOptions, D as DecryptOptions, b as DigestAlgorithm, E as ENCRYPTED_REGEX, c as Encoding, d as EncryptOptions, e as EncryptionAlgorithm, f as ErrorStruct, H as HashOptions, g as HashPasswordOptions, R as Result, V as VerifyPasswordOptions, m as matchEncryptedPattern, p as parseToObj, s as stringifyObj, t as tryParseToObj, h as tryStringifyObj } from './validate-vDTesb-X.js';
|
|
2
|
+
export { W as WebSecretKey, c as convertBytesToStr, a as convertEncoding, b as convertStrToBytes, d as createSecretKey, e as decrypt, f as decryptObj, g as encrypt, h as encryptObj, i as generateUuid, j as hash, k as hashPassword, l as isWebSecretKey, t as tryConvertBytesToStr, m as tryConvertEncoding, n as tryConvertStrToBytes, o as tryCreateSecretKey, p as tryDecrypt, q as tryDecryptObj, r as tryEncrypt, s as tryEncryptObj, u as tryGenerateUuid, v as tryHash, x as tryHashPassword, y as tryVerifyPassword, z as verifyPassword } from './export-BPo6yPV-.js';
|
package/dist/web-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { convertBytesToStr, convertEncoding, convertStrToBytes, createSecretKey, decrypt, decryptObj, encrypt, encryptObj, generateUuid, hash, hashPassword, tryConvertBytesToStr, tryConvertEncoding, tryConvertStrToBytes, tryCreateSecretKey, tryDecrypt, tryDecryptObj, tryEncrypt, tryEncryptObj, tryGenerateUuid, tryHash, tryHashPassword, verifyPassword } from './chunk-
|
|
2
|
-
export { ENCRYPTED_REGEX,
|
|
1
|
+
export { convertBytesToStr, convertEncoding, convertStrToBytes, createSecretKey, decrypt, decryptObj, encrypt, encryptObj, generateUuid, hash, hashPassword, isWebSecretKey, tryConvertBytesToStr, tryConvertEncoding, tryConvertStrToBytes, tryCreateSecretKey, tryDecrypt, tryDecryptObj, tryEncrypt, tryEncryptObj, tryGenerateUuid, tryHash, tryHashPassword, tryVerifyPassword, verifyPassword } from './chunk-GL32EZRA.js';
|
|
2
|
+
export { ENCRYPTED_REGEX, matchEncryptedPattern, parseToObj, stringifyObj, tryParseToObj, tryStringifyObj } from './chunk-IY6XGUYO.js';
|
|
3
3
|
//# sourceMappingURL=web-api.js.map
|
|
4
4
|
//# sourceMappingURL=web-api.js.map
|
package/package.json
CHANGED
|
@@ -1,92 +1,82 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cipher-kit",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "🔐 Secure, Modern, and Cross-Platform Cryptography Helpers for Web, Node.js, Deno, Bun, and Cloudflare Workers",
|
|
5
|
-
"homepage": "https://github.com/WolfieLeader/npm/tree/main/packages/cipher-kit#readme",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/WolfieLeader/npm.git",
|
|
9
|
-
"directory": "packages/cipher-kit"
|
|
10
|
-
},
|
|
11
|
-
"type": "module",
|
|
12
|
-
"main": "./dist/index.cjs",
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"hash",
|
|
84
|
-
"password",
|
|
85
|
-
"uuid",
|
|
86
|
-
"web",
|
|
87
|
-
"node",
|
|
88
|
-
"deno",
|
|
89
|
-
"bun",
|
|
90
|
-
"cloudflare"
|
|
91
|
-
]
|
|
92
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "cipher-kit",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "🔐 Secure, Modern, and Cross-Platform Cryptography Helpers for Web, Node.js, Deno, Bun, and Cloudflare Workers",
|
|
5
|
+
"homepage": "https://github.com/WolfieLeader/npm/tree/main/packages/cipher-kit#readme",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/WolfieLeader/npm.git",
|
|
9
|
+
"directory": "packages/cipher-kit"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"main": "./dist/index.cjs",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"require": {
|
|
20
|
+
"types": "./dist/index.d.cts",
|
|
21
|
+
"default": "./dist/index.cjs"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"./node": {
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./dist/node.d.ts",
|
|
27
|
+
"default": "./dist/node.js"
|
|
28
|
+
},
|
|
29
|
+
"require": {
|
|
30
|
+
"types": "./dist/node.d.cts",
|
|
31
|
+
"default": "./dist/node.cjs"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"./web-api": {
|
|
35
|
+
"import": {
|
|
36
|
+
"types": "./dist/web-api.d.ts",
|
|
37
|
+
"default": "./dist/web-api.js"
|
|
38
|
+
},
|
|
39
|
+
"require": {
|
|
40
|
+
"types": "./dist/web-api.d.cts",
|
|
41
|
+
"default": "./dist/web-api.cjs"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"./package.json": "./package.json"
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"dist"
|
|
48
|
+
],
|
|
49
|
+
"sideEffects": false,
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "tsup",
|
|
52
|
+
"prepare": "npm run build",
|
|
53
|
+
"typecheck": "tsc --noEmit",
|
|
54
|
+
"test": "vitest"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@internal/helpers": "workspace:*",
|
|
58
|
+
"@types/node": "^25.3.1",
|
|
59
|
+
"tsup": "^8.5.1",
|
|
60
|
+
"typescript": "^5.9.3",
|
|
61
|
+
"vitest": "^4.0.18"
|
|
62
|
+
},
|
|
63
|
+
"engines": {
|
|
64
|
+
"node": ">=18.0.0"
|
|
65
|
+
},
|
|
66
|
+
"author": "WolfieLeader",
|
|
67
|
+
"license": "MIT",
|
|
68
|
+
"keywords": [
|
|
69
|
+
"encrypt",
|
|
70
|
+
"crypto",
|
|
71
|
+
"cipher",
|
|
72
|
+
"security",
|
|
73
|
+
"hash",
|
|
74
|
+
"password",
|
|
75
|
+
"uuid",
|
|
76
|
+
"web",
|
|
77
|
+
"node",
|
|
78
|
+
"deno",
|
|
79
|
+
"bun",
|
|
80
|
+
"cloudflare"
|
|
81
|
+
]
|
|
82
|
+
}
|