Skip to content

Commit

Permalink
async
Browse files Browse the repository at this point in the history
  • Loading branch information
mengshuang committed Aug 14, 2024
1 parent 58bfcbc commit 8d879ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions BrowserAesCtr.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class BrowserAesCtr {
* @param {Array|String} data
* @returns {Uint8Array}
*/
encrypt(data) {
async encrypt(data) {
if(hasCrypto){
return this.encryptByCrypto(data)
}
Expand All @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 8d879ac

Please sign in to comment.