@stryke/crypto 0.5.13 → 0.5.21
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/CHANGELOG.md +225 -0
- package/README.md +31 -25
- package/dist/{base-64.d.ts → base-64-B1YDs-zl.d.cts} +8 -4
- package/dist/base-64-B1YDs-zl.d.cts.map +1 -0
- package/dist/base-64-Bh0chPX9.cjs +1 -0
- package/dist/base-64-D3iUgxLe.d.mts +40 -0
- package/dist/base-64-D3iUgxLe.d.mts.map +1 -0
- package/dist/base-64-n6I9tGzK.mjs +2 -0
- package/dist/base-64-n6I9tGzK.mjs.map +1 -0
- package/dist/base-64.cjs +1 -79
- package/dist/base-64.d.cts +2 -0
- package/dist/base-64.d.mts +2 -0
- package/dist/base-64.mjs +1 -1
- package/dist/encryption-CchoDEon.mjs +2 -0
- package/dist/encryption-CchoDEon.mjs.map +1 -0
- package/dist/{encryption.d.ts → encryption-Dw19bezD.d.cts} +11 -7
- package/dist/encryption-Dw19bezD.d.cts.map +1 -0
- package/dist/encryption-HwrvWUAF.cjs +1 -0
- package/dist/encryption-yC-pEQ14.d.mts +82 -0
- package/dist/encryption-yC-pEQ14.d.mts.map +1 -0
- package/dist/encryption.cjs +1 -60
- package/dist/encryption.d.cts +2 -0
- package/dist/encryption.d.mts +2 -0
- package/dist/encryption.mjs +1 -1
- package/dist/encryption.node-BLOlwsYV.mjs +2 -0
- package/dist/encryption.node-BLOlwsYV.mjs.map +1 -0
- package/dist/{encryption.node.d.ts → encryption.node-CyYXMEWi.d.cts} +11 -5
- package/dist/encryption.node-CyYXMEWi.d.cts.map +1 -0
- package/dist/encryption.node-DCO-i6QP.cjs +1 -0
- package/dist/encryption.node-pNNijU1t.d.mts +42 -0
- package/dist/encryption.node-pNNijU1t.d.mts.map +1 -0
- package/dist/encryption.node.cjs +1 -34
- package/dist/encryption.node.d.cts +2 -0
- package/dist/encryption.node.d.mts +2 -0
- package/dist/encryption.node.mjs +1 -1
- package/dist/{hex.d.ts → hex-BaOs3VLq.d.cts} +6 -2
- package/dist/hex-BaOs3VLq.d.cts.map +1 -0
- package/dist/hex-C1p5VuEv.mjs +2 -0
- package/dist/hex-C1p5VuEv.mjs.map +1 -0
- package/dist/hex-CDXtL048.cjs +1 -0
- package/dist/hex-eot11JTh.d.mts +18 -0
- package/dist/hex-eot11JTh.d.mts.map +1 -0
- package/dist/hex.cjs +1 -47
- package/dist/hex.d.cts +2 -0
- package/dist/hex.d.mts +2 -0
- package/dist/hex.mjs +1 -1
- package/dist/index.cjs +1 -38
- package/dist/index.d.cts +4 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.mjs +1 -1
- package/dist/neutral.cjs +1 -38
- package/dist/neutral.d.cts +4 -0
- package/dist/neutral.d.mts +4 -0
- package/dist/neutral.mjs +1 -1
- package/package.json +24 -125
- package/dist/index.d.ts +0 -3
- package/dist/neutral.d.ts +0 -3
package/dist/neutral.cjs
CHANGED
|
@@ -1,38 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _base = require("./base-64.cjs");
|
|
7
|
-
Object.keys(_base).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _base[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _base[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
var _encryption = require("./encryption.cjs");
|
|
18
|
-
Object.keys(_encryption).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _encryption[key]) return;
|
|
21
|
-
Object.defineProperty(exports, key, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return _encryption[key];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
var _hex = require("./hex.cjs");
|
|
29
|
-
Object.keys(_hex).forEach(function (key) {
|
|
30
|
-
if (key === "default" || key === "__esModule") return;
|
|
31
|
-
if (key in exports && exports[key] === _hex[key]) return;
|
|
32
|
-
Object.defineProperty(exports, key, {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () {
|
|
35
|
-
return _hex[key];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
1
|
+
const e=require(`./base-64-Bh0chPX9.cjs`),t=require(`./hex-CDXtL048.cjs`),n=require(`./encryption-HwrvWUAF.cjs`);exports.base64FromBase64url=e.t,exports.base64ToBase64url=e.n,exports.createKey=n.t,exports.decodeBase64=e.r,exports.decodeHex=t.t,exports.decodeKey=n.n,exports.decrypt=n.r,exports.decryptBuffer=n.i,exports.encodeBase64=e.i,exports.encodeHex=t.n,exports.encodeKey=n.a,exports.encrypt=n.o,exports.encryptBuffer=n.s;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { i as encodeBase64, n as base64ToBase64url, r as decodeBase64, t as base64FromBase64url } from "./base-64-B1YDs-zl.cjs";
|
|
2
|
+
import { a as encodeKey, i as decryptBuffer, n as decodeKey, o as encrypt, r as decrypt, s as encryptBuffer, t as createKey } from "./encryption-Dw19bezD.cjs";
|
|
3
|
+
import { n as encodeHex, t as decodeHex } from "./hex-BaOs3VLq.cjs";
|
|
4
|
+
export { base64FromBase64url, base64ToBase64url, createKey, decodeBase64, decodeHex, decodeKey, decrypt, decryptBuffer, encodeBase64, encodeHex, encodeKey, encrypt, encryptBuffer };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { i as encodeBase64, n as base64ToBase64url, r as decodeBase64, t as base64FromBase64url } from "./base-64-D3iUgxLe.mjs";
|
|
2
|
+
import { a as encodeKey, i as decryptBuffer, n as decodeKey, o as encrypt, r as decrypt, s as encryptBuffer, t as createKey } from "./encryption-yC-pEQ14.mjs";
|
|
3
|
+
import { n as encodeHex, t as decodeHex } from "./hex-eot11JTh.mjs";
|
|
4
|
+
export { base64FromBase64url, base64ToBase64url, createKey, decodeBase64, decodeHex, decodeKey, decrypt, decryptBuffer, encodeBase64, encodeHex, encodeKey, encrypt, encryptBuffer };
|
package/dist/neutral.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{i as e,n as t,r as n,t as r}from"./base-64-n6I9tGzK.mjs";import{n as i,t as a}from"./hex-C1p5VuEv.mjs";import{a as o,i as s,n as c,o as l,r as u,s as d,t as f}from"./encryption-CchoDEon.mjs";export{r as base64FromBase64url,t as base64ToBase64url,f as createKey,n as decodeBase64,a as decodeHex,c as decodeKey,u as decrypt,s as decryptBuffer,e as encodeBase64,i as encodeHex,o as encodeKey,l as encrypt,d as encryptBuffer};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/crypto",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing cryptographic utilities used by Storm Software.",
|
|
6
6
|
"repository": {
|
|
@@ -9,136 +9,35 @@
|
|
|
9
9
|
"directory": "packages/crypto"
|
|
10
10
|
},
|
|
11
11
|
"private": false,
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"@stryke/type-checks": "^0.4.3"
|
|
15
|
-
},
|
|
16
|
-
"devDependencies": { "@types/node": "^24.10.1" },
|
|
17
|
-
"publishConfig": { "access": "public" },
|
|
18
|
-
"sideEffects": false,
|
|
19
|
-
"files": ["dist/**/*"],
|
|
20
|
-
"homepage": "https://stormsoftware.com",
|
|
21
|
-
"bugs": {
|
|
22
|
-
"url": "https://stormsoftware.com/support",
|
|
23
|
-
"email": "support@stormsoftware.com"
|
|
24
|
-
},
|
|
25
|
-
"license": "Apache-2.0",
|
|
26
|
-
"keywords": [
|
|
27
|
-
"stryke",
|
|
28
|
-
"typescript",
|
|
29
|
-
"utilities",
|
|
30
|
-
"storm-software",
|
|
31
|
-
"storm",
|
|
32
|
-
"storm-ops",
|
|
33
|
-
"cyclone-ui",
|
|
34
|
-
"sullivanpj",
|
|
35
|
-
"monorepo"
|
|
36
|
-
],
|
|
37
|
-
"funding": {
|
|
38
|
-
"type": "github",
|
|
39
|
-
"url": "https://github.com/sponsors/storm-software"
|
|
40
|
-
},
|
|
41
|
-
"author": {
|
|
42
|
-
"name": "Storm Software",
|
|
43
|
-
"email": "contact@stormsoftware.com",
|
|
44
|
-
"url": "https://stormsoftware.com"
|
|
45
|
-
},
|
|
46
|
-
"maintainers": [
|
|
47
|
-
{
|
|
48
|
-
"name": "Storm Software",
|
|
49
|
-
"email": "contact@stormsoftware.com",
|
|
50
|
-
"url": "https://stormsoftware.com"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"contributors": [
|
|
54
|
-
{
|
|
55
|
-
"name": "Storm Software",
|
|
56
|
-
"email": "contact@stormsoftware.com",
|
|
57
|
-
"url": "https://stormsoftware.com"
|
|
58
|
-
}
|
|
59
|
-
],
|
|
12
|
+
"main": "./dist/index.cjs",
|
|
13
|
+
"module": "./dist/index.mjs",
|
|
60
14
|
"exports": {
|
|
61
|
-
"./
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
"require": {
|
|
67
|
-
"types": "./dist/neutral.d.ts",
|
|
68
|
-
"default": "./dist/neutral.cjs"
|
|
69
|
-
},
|
|
70
|
-
"default": {
|
|
71
|
-
"types": "./dist/neutral.d.ts",
|
|
72
|
-
"default": "./dist/neutral.mjs"
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"./index": {
|
|
76
|
-
"import": { "types": "./dist/index.d.ts", "default": "./dist/index.mjs" },
|
|
77
|
-
"require": {
|
|
78
|
-
"types": "./dist/index.d.ts",
|
|
79
|
-
"default": "./dist/index.cjs"
|
|
80
|
-
},
|
|
81
|
-
"default": { "types": "./dist/index.d.ts", "default": "./dist/index.mjs" }
|
|
82
|
-
},
|
|
83
|
-
"./hex": {
|
|
84
|
-
"import": { "types": "./dist/hex.d.ts", "default": "./dist/hex.mjs" },
|
|
85
|
-
"require": { "types": "./dist/hex.d.ts", "default": "./dist/hex.cjs" },
|
|
86
|
-
"default": { "types": "./dist/hex.d.ts", "default": "./dist/hex.mjs" }
|
|
15
|
+
".": { "require": "./dist/index.cjs", "import": "./dist/index.mjs" },
|
|
16
|
+
"./base-64": {
|
|
17
|
+
"require": "./dist/base-64.cjs",
|
|
18
|
+
"import": "./dist/base-64.mjs"
|
|
87
19
|
},
|
|
88
20
|
"./encryption": {
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
"default": "./dist/encryption.mjs"
|
|
92
|
-
},
|
|
93
|
-
"require": {
|
|
94
|
-
"types": "./dist/encryption.d.ts",
|
|
95
|
-
"default": "./dist/encryption.cjs"
|
|
96
|
-
},
|
|
97
|
-
"default": {
|
|
98
|
-
"types": "./dist/encryption.d.ts",
|
|
99
|
-
"default": "./dist/encryption.mjs"
|
|
100
|
-
}
|
|
21
|
+
"require": "./dist/encryption.cjs",
|
|
22
|
+
"import": "./dist/encryption.mjs"
|
|
101
23
|
},
|
|
102
24
|
"./encryption.node": {
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
"default": "./dist/encryption.node.mjs"
|
|
106
|
-
},
|
|
107
|
-
"require": {
|
|
108
|
-
"types": "./dist/encryption.node.d.ts",
|
|
109
|
-
"default": "./dist/encryption.node.cjs"
|
|
110
|
-
},
|
|
111
|
-
"default": {
|
|
112
|
-
"types": "./dist/encryption.node.d.ts",
|
|
113
|
-
"default": "./dist/encryption.node.mjs"
|
|
114
|
-
}
|
|
25
|
+
"require": "./dist/encryption.node.cjs",
|
|
26
|
+
"import": "./dist/encryption.node.mjs"
|
|
115
27
|
},
|
|
116
|
-
"./
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
},
|
|
121
|
-
"require": {
|
|
122
|
-
"types": "./dist/base-64.d.ts",
|
|
123
|
-
"default": "./dist/base-64.cjs"
|
|
124
|
-
},
|
|
125
|
-
"default": {
|
|
126
|
-
"types": "./dist/base-64.d.ts",
|
|
127
|
-
"default": "./dist/base-64.mjs"
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
".": {
|
|
131
|
-
"import": { "types": "./dist/index.d.ts", "default": "./dist/index.mjs" },
|
|
132
|
-
"require": {
|
|
133
|
-
"types": "./dist/index.d.ts",
|
|
134
|
-
"default": "./dist/index.cjs"
|
|
135
|
-
},
|
|
136
|
-
"default": { "types": "./dist/index.d.ts", "default": "./dist/index.mjs" }
|
|
28
|
+
"./hex": { "require": "./dist/hex.cjs", "import": "./dist/hex.mjs" },
|
|
29
|
+
"./neutral": {
|
|
30
|
+
"require": "./dist/neutral.cjs",
|
|
31
|
+
"import": "./dist/neutral.mjs"
|
|
137
32
|
},
|
|
138
|
-
"
|
|
33
|
+
"./*": "./*"
|
|
139
34
|
},
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
|
|
143
|
-
|
|
35
|
+
"types": "./dist/index.d.cts",
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@stryke/convert": "^0.6.20",
|
|
38
|
+
"@stryke/type-checks": "^0.5.5"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": { "@types/node": "^24.10.1", "tsdown": "^0.17.1" },
|
|
41
|
+
"publishConfig": { "access": "public" },
|
|
42
|
+
"gitHead": "5c645896466d1f6a26fb9cf9748ba226dd4d1f07"
|
|
144
43
|
}
|
package/dist/index.d.ts
DELETED
package/dist/neutral.d.ts
DELETED