Error encrypting Aes

i trying to encrypt whit Aes but got error when try to encrypt.
here is my error:

I mean it does tell you the error, maybe you need to pad it?

i cant change the key and the iv. the key is that i want to can send correct data.
error is about key size.

Then maybe you need 256 as key size, have you tried it?

no the script said me is 128/8
part of script:

var key = CryptoJS.enc.Utf8.parse('8080808080808080');
var iv = CryptoJS.enc.Utf8.parse('8080808080808080');
 keySize: 128 / 8,
 iv: iv,
mode: CryptoJS.mode.CBC,
padding: CryptoJS.pad.Pkcs7

Why are you putting it as HEX when it’s clearly a UTF-8 string?
You need to use a site like this Convert UTF8 to Base64 - Online UTF8 Tools to convert your UTF-8 string 8080808080808080 to base64 and then put it in the base64 field of both the Key and IV parameters of the AES Encrypt block. In this case you need to write ODA4MDgwODA4MDgwODA4MA==

1 Like

thanks for reply but got the same error.

Can you please screenshot the block once again?

1 Like

sorry,now is working many thanks.

you can refer to this if you are into using JS

1 Like

thanks is very useful.