Crypto.JS / AES-encryption

I need some help me
how to encrypt the
this is the full script
any help ??

	 function Encrypt(value) {
		 var key = CryptoJS.enc.Utf8.parse('8080808080808080');
		 var iv = CryptoJS.enc.Utf8.parse('8080808080808080');

		 var encryptedlogin = CryptoJS.AES.encrypt(CryptoJS.enc.Utf8.parse(value), key,
		 {
			 keySize: 128 / 8,
			 iv: iv,
			 mode: CryptoJS.mode.CBC,
			 padding: CryptoJS.pad.Pkcs7
		 });
		 return encryptedlogin;
	 }

2021-03-15 22_39_13-Window

I added them in AESencryption but he give me a false value
i cant add the UTF, and i cant add the keysize 128/8


Any professional one here ??

key and iv must be in base64 not utf8, use an online converter

Still the same problem
password is wrong ( < PASS > )
i tested the password in the website and he gived me a value ( Hiidydu…== )
i tried the same password in OB with encrypted key & iv and he gived me different value (xh9c5u3MsQF…==)

:frowning: :frowning:

and i think the problem from key size 128/8

Yeah the key size is fixed at 256 in the code :confused: you would need to edit the code of OB1 to change it

can you give me the script let me add it to loliscript !! ( key size128/8 )

You can’t, you have to change the source code of OB

im on the OB2 and i didnt see it also there
no OB1 and no in OB2 :frowning: :frowning: :frowning: :frowning: :frowning:

Exactly. If you want me to add configurable key size in OB2 open an issue on github

ok thanks riru
dont forget to work on it next update

If you open an issue yes, if you don’t, no