jsencrypt-ext
TypeScript icon, indicating that this package has built-in type declarations

2.1.2 • Public • Published

Introduction

jsencrypt is a popular RSA Javascript encryption library, but it does not support to encryt/decrypt long message. Although RSA is not recommended to encrypt long plaintext, there are still many business scenes to achieve it. I have extended the lib, based on jsencrypt.

How to use

import JSEncrypt from "jsencrypt-ext";

const encryptInstance = new JSEncrypt();
encryptInstance.setPublicKey("publicKey");

const ciphertext = encryptInstance.encrypt("long plaintext");

const decryptInstance = new JSEncrypt();
decryptInstance.setPrivateKey("privateKey");

const plaintext = decryptInstance.decrypt("ciphertext");

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.1.240latest

Version History

VersionDownloads (Last 7 Days)Published
2.1.240
2.1.10
2.1.00
2.0.00
1.1.11
1.1.00
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i jsencrypt-ext

Weekly Downloads

41

Version

2.1.2

License

MIT

Unpacked Size

240 kB

Total Files

8

Last publish

Collaborators

  • bartlian