ms-types 0.3.26 → 0.3.27
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/package.json +1 -1
- package/types/cryptoUtils.d.ts +7 -7
package/package.json
CHANGED
package/types/cryptoUtils.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
declare namespace cryptoUtils {
|
|
2
|
-
/// 使用AES
|
|
2
|
+
/// 使用AES ECB模式加密数据 默认使用PKCS7填充
|
|
3
3
|
/// - Parameters:
|
|
4
4
|
/// - aesKey: AES密钥
|
|
5
5
|
/// - data: 要加密的数据
|
|
6
|
-
/// - noPadding: 是否禁用填充,默认为false
|
|
6
|
+
/// - noPadding: 是否禁用填充,默认为false, 默认使用PKCS7填充
|
|
7
7
|
/// - Returns: 加密后的数据
|
|
8
|
-
function
|
|
8
|
+
function encryptWithAES_ECB(
|
|
9
9
|
aesKey: string,
|
|
10
10
|
data: string,
|
|
11
11
|
noPadding?: boolean
|
|
12
12
|
): string;
|
|
13
13
|
|
|
14
|
-
/// 使用AES
|
|
14
|
+
/// 使用AES ECB模式解密数据 默认使用PKCS7填充
|
|
15
15
|
/// - Parameters:
|
|
16
|
-
/// - aesKey: AES密钥
|
|
16
|
+
/// - aesKey: AES密钥 32位16进制字符串
|
|
17
17
|
/// - data: 要解密的数据
|
|
18
|
-
/// - noPadding: 是否禁用填充,默认为false
|
|
18
|
+
/// - noPadding: 是否禁用填充,默认为false, 默认使用PKCS7填充
|
|
19
19
|
/// - Returns: 解密后的数据
|
|
20
|
-
function
|
|
20
|
+
function decryptWithAES_ECB(
|
|
21
21
|
aesKey: string,
|
|
22
22
|
data: string,
|
|
23
23
|
noPadding?: boolean
|