diff --git a/BrowserAesCtr.js b/BrowserAesCtr.js index f544cd4..a32b199 100644 --- a/BrowserAesCtr.js +++ b/BrowserAesCtr.js @@ -18,7 +18,7 @@ class BrowserAesCtr { * @param {Array|String} data * @returns {Uint8Array} */ - encrypt(data) { + async encrypt(data) { if(hasCrypto){ return this.encryptByCrypto(data) } @@ -37,7 +37,7 @@ class BrowserAesCtr { * @param {Array|String} data if string, must be base64 * @returns {Uint8Array} */ - decrypt(data) { + async decrypt(data) { if(hasCrypto){ return this.decryptByCrypto(data) } diff --git a/package.json b/package.json index 2d08d2a..4794a66 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "browser-rsa", "type": "module", - "version": "1.0.3", + "version": "1.0.4", "description": "pure js rsa, rsa for browser, 微信小程序 rsa", "keywords": [ "browser",