Commit 82d9be63f88cb9f329b164e45f856103329c55d8
1 parent
2ac8e91c
1
Showing
1 changed file
with
1 additions
and
1 deletions
lvdao-miniapp/utils/rsaEncrypt.js
| @@ -14,7 +14,7 @@ export function encrypt(txt) { | @@ -14,7 +14,7 @@ export function encrypt(txt) { | ||
| 14 | return encryptor.encrypt(txt) // 对需要加密的数据进行加密 | 14 | return encryptor.encrypt(txt) // 对需要加密的数据进行加密 |
| 15 | } | 15 | } |
| 16 | 16 | ||
| 17 | -// 解密 | 17 | +// 解密 |
| 18 | export function decrypt(txt) { | 18 | export function decrypt(txt) { |
| 19 | const encryptor = new JSEncrypt() | 19 | const encryptor = new JSEncrypt() |
| 20 | encryptor.setPrivateKey(privateKey) | 20 | encryptor.setPrivateKey(privateKey) |