-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathEncrypt.d.ts
More file actions
58 lines (49 loc) · 994 Bytes
/
Copy pathEncrypt.d.ts
File metadata and controls
58 lines (49 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
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
declare global {
var Encrypt: Encrypt;
}
interface Encrypt {
/**
* md5加密
* @param input
*/
public md5(input: string): string;
/**
* sha1加密
* @param input
*/
public sha1(input: string): string;
/**
* sha256加密
* @param input
*/
public sha256(input: string): string;
/**
* base64 encode
* @param input
*/
public base64Encode(input: string|byte[]): string;
/**
* base64 decode
* @param input
*/
public base64Decode(input: string): string;
/**
* 生成iv
*/
public generateIv(): string;
/**
* aescbc加密
* @param key
* @param iv
* @param input
*/
public aesCbcEncrypt(key: string, iv: string, input: string): string;
/**
* aescbc解密
* @param key
* @param iv
* @param input
*/
public aesCbcDecrypt(key: string, iv: string, input: string): string;
}
export { };