initital commit

This commit is contained in:
fengachen
2021-09-15 09:58:01 +08:00
commit d46f96d263
90 changed files with 17509 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
// import JSEncrypt from '../jsencrypt/jsencrypt'
// import JSEncrypt from '../jsencrypt/jsencryptInit'
import JSEncrypt from '../jsencrypt/jsencryptInit'
export function encrypt(publicKey, message) {
const encrypt = new JSEncrypt()
encrypt.setPublicKey(publicKey) // publicKey为公钥
return encrypt.encrypt(message)
}