pure-md5 0.2.1 → 0.2.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.
@@ -1,42 +0,0 @@
1
- /**
2
- * Backend interface for MD5 operations
3
- */
4
- interface MD5Backend {
5
- /**
6
- * Name of the backend
7
- */
8
- name: string;
9
- /**
10
- * Version of the backend
11
- */
12
- version: string;
13
- /**
14
- * Hash string data
15
- * @param data - String to hash
16
- * @returns MD5 hash as hex string
17
- */
18
- hash(data: string): string | Promise<string>;
19
- /**
20
- * Hash binary data (ArrayBuffer, Uint8Array)
21
- * @param data - Binary data to hash
22
- * @returns MD5 hash as hex string
23
- */
24
- hashBinary(data: ArrayBuffer | Uint8Array): string | Promise<string>;
25
- /**
26
- * Update hash with additional data (for streaming)
27
- * @param data - Data to add to hash
28
- */
29
- update(data: string | ArrayBuffer | Uint8Array): void | Promise<void>;
30
- /**
31
- * Get final hash digest
32
- * @param encoding - Output encoding ('hex' or 'buffer')
33
- * @returns Hash digest
34
- */
35
- digest(encoding?: 'hex' | 'buffer'): string | Uint8Array | Promise<string | Uint8Array>;
36
- /**
37
- * Reset the hash state
38
- */
39
- reset(): void | Promise<void>;
40
- }
41
-
42
- export type { MD5Backend as M };
@@ -1,42 +0,0 @@
1
- /**
2
- * Backend interface for MD5 operations
3
- */
4
- interface MD5Backend {
5
- /**
6
- * Name of the backend
7
- */
8
- name: string;
9
- /**
10
- * Version of the backend
11
- */
12
- version: string;
13
- /**
14
- * Hash string data
15
- * @param data - String to hash
16
- * @returns MD5 hash as hex string
17
- */
18
- hash(data: string): string | Promise<string>;
19
- /**
20
- * Hash binary data (ArrayBuffer, Uint8Array)
21
- * @param data - Binary data to hash
22
- * @returns MD5 hash as hex string
23
- */
24
- hashBinary(data: ArrayBuffer | Uint8Array): string | Promise<string>;
25
- /**
26
- * Update hash with additional data (for streaming)
27
- * @param data - Data to add to hash
28
- */
29
- update(data: string | ArrayBuffer | Uint8Array): void | Promise<void>;
30
- /**
31
- * Get final hash digest
32
- * @param encoding - Output encoding ('hex' or 'buffer')
33
- * @returns Hash digest
34
- */
35
- digest(encoding?: 'hex' | 'buffer'): string | Uint8Array | Promise<string | Uint8Array>;
36
- /**
37
- * Reset the hash state
38
- */
39
- reset(): void | Promise<void>;
40
- }
41
-
42
- export type { MD5Backend as M };
Binary file