@secrecy/lib 1.86.2-fix-crypto.1 → 1.86.2-fix-md5.1
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/dist/lib/client/SecrecyCloudClient.js +5 -6
- package/dist/lib/client/data-link.js +6 -11
- package/dist/lib/client/upload.js +9 -9
- package/dist/lib/crypto/data.js +4 -7
- package/dist/lib/crypto/domain.js +1 -3
- package/dist/lib/crypto/helpers.js +2 -10
- package/dist/lib/worker/generated/sodium.js +1 -1
- package/dist/lib/worker/sodium.js +3 -4
- package/dist/types/client/data-link.d.ts +4 -4
- package/dist/types/client/types/data.d.ts +2 -1
- package/dist/types/client.d.ts +60 -62
- package/dist/types/crypto/data.d.ts +3 -13
- package/dist/types/crypto/domain.d.ts +0 -1
- package/dist/types/crypto/helpers.d.ts +2 -6
- package/dist/types/worker/generated/sodium.d.ts +1 -1
- package/dist/types/worker/sodium.d.ts +2 -2
- package/package.json +2 -2
|
@@ -5,12 +5,8 @@ export declare function derivePassword(password: string, salt: Uint8Array<ArrayB
|
|
|
5
5
|
* `version (1 byte) || salt || nonce || secretbox(key)`.
|
|
6
6
|
*/
|
|
7
7
|
export declare function encryptKeyWithPassword(key: Uint8Array, password: string): Uint8Array;
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
* legacy format (`nonce || secretbox(key)`) whose salt was derived from the
|
|
11
|
-
* password and the plaintext md5, hence `legacyMd5`.
|
|
12
|
-
*/
|
|
13
|
-
export declare function decryptKeyWithPassword(wrapped: Uint8Array, password: string, legacyMd5: string): Uint8Array;
|
|
8
|
+
/** Unwrap a data key produced by `encryptKeyWithPassword`. */
|
|
9
|
+
export declare function decryptKeyWithPassword(wrapped: Uint8Array, password: string): Uint8Array;
|
|
14
10
|
export declare function encryptName(name: string, nameKey: string): Promise<string>;
|
|
15
11
|
export declare function generateAndEncryptNameAndKey(args: {
|
|
16
12
|
name: string;
|