Why is the result of each encryption different from the same content?
Author: carveybuntCreated Aug 24, 2023Updated May 11, 2025
version: 3.3.2
export function encryptViaPriPem() {
const txt = '123'
const encryptor = new JSEncrypt()
encryptor.setPrivateKey(privateKey)
return encryptor.encrypt(txt)
}And get false for decrypt.
Source: travist/jsencrypt