Open wrh8214158 opened 1 year ago
chrome version: 17 jsencrypt version: 3.3.2
I have tried installing all versions of jsencrypt, but still reported an error.
use like this:
export const rsaEncrypt = (val: Record<string, unknown> | unknown[] | string | number = '') => { const PUBLIC_KEY = `sdwdwadwadwdsasdwadwdwadawdawdwadwad`; const encrypt = new JSEncrypt(); encrypt.setPublicKey(PUBLIC_KEY); const value = typeof val === 'object' ? JSON.stringify(val) : ['string', 'number'].includes(typeof val) ? String(val) : ''; return encrypt.encrypt(value); };
error:
chrome version: 17 jsencrypt version: 3.3.2
I have tried installing all versions of jsencrypt, but still reported an error.
use like this:
error: