UNPKG

jsencrypt-ext

Version:

A Javascript library to extend jsencrypt and can encrypt/decrypt long message

8 lines (7 loc) 294 B
import JSEncrypt from 'jsencrypt'; import type { IJSEncryptOptions } from 'jsencrypt/lib/JSEncrypt'; export default class JSEncryptExt extends JSEncrypt { constructor(options?: IJSEncryptOptions); encrypt(str: string): string | false; decrypt(cipherText: string): string | false; }