ddan-js 4.1.4 → 4.1.6
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/bin/ddan-browser.js +1 -1
- package/bin/ddan-browser.mjs +1 -1
- package/bin/ddan-js.js +1 -1
- package/bin/ddan-js.mjs +1 -1
- package/bin/modules/cipher.d.ts +4 -1
- package/bin/modules/crypto/cipher.d.ts +3 -0
- package/bin/modules/node/cipher-web.d.ts +5 -2
- package/bin/modules/node/index.d.ts +5 -2
- package/bin/tiny/node.d.ts +5 -2
- package/bin/tiny/web.d.ts +4 -1
- package/package.json +1 -1
package/bin/modules/cipher.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
aesGcmEncrypt: (text: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
|
|
3
|
-
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst
|
|
3
|
+
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
|
|
4
4
|
aesCryptoKey: (sharedBase64: string) => Promise<CryptoKey | null>;
|
|
5
5
|
aesCryptoKeyFromHkdf: (sharedBase64: string, saltBase64: string, infoBase64: string) => Promise<CryptoKey | null>;
|
|
6
|
+
aesGcmKey: (rawData: BufferSource) => Promise<CryptoKey | null>;
|
|
7
|
+
rawKeyHex: (cryptoKey: CryptoKey) => Promise<string>;
|
|
8
|
+
rawKeyBytes: (cryptoKey: CryptoKey) => Promise<Uint8Array | null>;
|
|
6
9
|
};
|
|
7
10
|
export default _default;
|
|
@@ -3,5 +3,8 @@ declare const _default: {
|
|
|
3
3
|
aesGcmDecrypt: (subtle: any, encryptedBase64: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
|
|
4
4
|
aesCryptoKey: (subtle: any, sharedBase64: string) => Promise<CryptoKey | null>;
|
|
5
5
|
aesCryptoKeyFromHkdf: (subtle: any, sharedBase64: string, saltBase64: string, infoBase64: string) => Promise<CryptoKey | null>;
|
|
6
|
+
aesGcmKey: (subtle: any, rawData: BufferSource) => Promise<CryptoKey | null>;
|
|
7
|
+
rawKeyHex: (subtle: any, cryptoKey: CryptoKey) => Promise<string>;
|
|
8
|
+
rawKeyBytes: (subtle: any, cryptoKey: CryptoKey) => Promise<Uint8Array | null>;
|
|
6
9
|
};
|
|
7
10
|
export default _default;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
aesGcmEncrypt: (text: string, aesKey: CryptoKey, ivFirst
|
|
3
|
-
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst
|
|
2
|
+
aesGcmEncrypt: (text: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
|
|
3
|
+
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
|
|
4
4
|
aesCryptoKey: (sharedBase64: string) => Promise<CryptoKey | null>;
|
|
5
5
|
aesCryptoKeyFromHkdf: (sharedBase64: string, saltBase64: string, infoBase64: string) => Promise<CryptoKey | null>;
|
|
6
|
+
aesGcmKey: (rawData: BufferSource) => Promise<CryptoKey | null>;
|
|
7
|
+
rawKeyHex: (cryptoKey: CryptoKey) => Promise<string>;
|
|
8
|
+
rawKeyBytes: (cryptoKey: CryptoKey) => Promise<Uint8Array | null>;
|
|
6
9
|
};
|
|
7
10
|
export default _default;
|
|
@@ -18,10 +18,13 @@ declare const _default: {
|
|
|
18
18
|
decode: (encryptedBase64: string) => Promise<string>;
|
|
19
19
|
};
|
|
20
20
|
cipher: {
|
|
21
|
-
aesGcmEncrypt: (text: string, aesKey: CryptoKey, ivFirst
|
|
22
|
-
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst
|
|
21
|
+
aesGcmEncrypt: (text: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
|
|
22
|
+
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
|
|
23
23
|
aesCryptoKey: (sharedBase64: string) => Promise<CryptoKey | null>;
|
|
24
24
|
aesCryptoKeyFromHkdf: (sharedBase64: string, saltBase64: string, infoBase64: string) => Promise<CryptoKey | null>;
|
|
25
|
+
aesGcmKey: (rawData: BufferSource) => Promise<CryptoKey | null>;
|
|
26
|
+
rawKeyHex: (cryptoKey: CryptoKey) => Promise<string>;
|
|
27
|
+
rawKeyBytes: (cryptoKey: CryptoKey) => Promise<Uint8Array | null>;
|
|
25
28
|
};
|
|
26
29
|
findFreePort: (startPort: number, maxRetries?: number) => Promise<number>;
|
|
27
30
|
getSystemProxy: () => Promise<{
|
package/bin/tiny/node.d.ts
CHANGED
|
@@ -15,10 +15,13 @@ declare const dNode: {
|
|
|
15
15
|
decode: (encryptedBase64: string) => Promise<string>;
|
|
16
16
|
};
|
|
17
17
|
cipher: {
|
|
18
|
-
aesGcmEncrypt: (text: string, aesKey: CryptoKey, ivFirst
|
|
19
|
-
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst
|
|
18
|
+
aesGcmEncrypt: (text: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
|
|
19
|
+
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
|
|
20
20
|
aesCryptoKey: (sharedBase64: string) => Promise<CryptoKey | null>;
|
|
21
21
|
aesCryptoKeyFromHkdf: (sharedBase64: string, saltBase64: string, infoBase64: string) => Promise<CryptoKey | null>;
|
|
22
|
+
aesGcmKey: (rawData: BufferSource) => Promise<CryptoKey | null>;
|
|
23
|
+
rawKeyHex: (cryptoKey: CryptoKey) => Promise<string>;
|
|
24
|
+
rawKeyBytes: (cryptoKey: CryptoKey) => Promise<Uint8Array | null>;
|
|
22
25
|
};
|
|
23
26
|
findFreePort: (startPort: number, maxRetries?: number) => Promise<number>;
|
|
24
27
|
getSystemProxy: () => Promise<{
|
package/bin/tiny/web.d.ts
CHANGED
|
@@ -183,9 +183,12 @@ declare const dWeb: {
|
|
|
183
183
|
};
|
|
184
184
|
cipher: {
|
|
185
185
|
aesGcmEncrypt: (text: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
|
|
186
|
-
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst
|
|
186
|
+
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
|
|
187
187
|
aesCryptoKey: (sharedBase64: string) => Promise<CryptoKey | null>;
|
|
188
188
|
aesCryptoKeyFromHkdf: (sharedBase64: string, saltBase64: string, infoBase64: string) => Promise<CryptoKey | null>;
|
|
189
|
+
aesGcmKey: (rawData: BufferSource) => Promise<CryptoKey | null>;
|
|
190
|
+
rawKeyHex: (cryptoKey: CryptoKey) => Promise<string>;
|
|
191
|
+
rawKeyBytes: (cryptoKey: CryptoKey) => Promise<Uint8Array | null>;
|
|
189
192
|
};
|
|
190
193
|
};
|
|
191
194
|
export default dWeb;
|