jsencrypt-rsa

A Javascript library to perform OpenSSL RSA Encryption, Decryption, and Key Generation

Usage no npm install needed!

<script type="module">
  import jsencryptRsa from 'https://cdn.skypack.dev/jsencrypt-rsa';
</script>

README

#用法:JSEncrypt分段加密解密

#实例化加密对象
var encrypt = new JSEncrypt();
#设置加密公钥
encrypt.setPublicKey("......");

    #分段加密 var sss=encrypt.encryptLong2("加密加密加密加密加密加密加密加密加密加密!");

#设置解密私钥
encrypt.setPrivateKey(".......")

    #分段解密 var sss= encrypt.decryptLong2(sss);