light-h5-core-lib 2.7.0 → 2.7.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.
@@ -33,6 +33,13 @@ var CryptUtil = /** @class */ (function () {
33
33
  });
34
34
  return decrypted.toString(CryptoJS.enc.Utf8);
35
35
  };
36
+ //#endregion
37
+ /**
38
+ MD5
39
+ */
40
+ CryptUtil.md5 = function (message) {
41
+ return CryptoJS.MD5(message);
42
+ };
36
43
  return CryptUtil;
37
44
  }());
38
45
  exports.CryptUtil = CryptUtil;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "light-h5-core-lib",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "h5 core lib",
5
5
  "main": "./LightCore.js",
6
6
  "types": "./type/index.d.ts",
package/type/index.d.ts CHANGED
@@ -202,6 +202,10 @@ export declare class CryptUtil {
202
202
  * AES-256 ECB 解密
203
203
  */
204
204
  static decryptAes(encryptedText: string, key: string): string;
205
+ /**
206
+ MD5
207
+ */
208
+ static md5(message: string): string;
205
209
  }
206
210
 
207
211
  export {};