Closed celevra closed 5 months ago
var encrypted = rs.KJUR.crypto.Cipher.encrypt('this is a Test', pubKey, 'aes256-CBC', {iv: iv})
For AES-256 encryption, key value shall be a hexadecimal string with 64 characters.
ok but how to encrypt this 64 char hexadecimal string async?
we wan't to use private/public keys
Here is an example:
let k = "f305c553ff811197110f6b84541687fe51ba922d4da508fc222316ba4f010a6c";
let iv = "3cb8611d0fb0931b370bf982ecf06300";
let encmsg = KJUR.crypto.Cipher.decrypt("616161", k, "aes256-CBC", { iv: iv })
ok and how do i encrypt the k and iv with a public cert?
i don't agree that this is closed. There seem no way to use async encryption/decryption with certificates (private/public) Key anymore
Please use WebCrypto API instead: https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API
Hi,
before of the removal of RSAOAEP256 we have en decrypted like this:
how is it done in aes256-CB? we tried it like this:
but it gives us the wrong result thank you in advance for your help