Aes-256 Cryptography read and write Qr code

Hi everyone,
I am trying to create a QR code with some simple text in it since the text has some personal info in it I should encrypt it.
Can anyone explain to me how to actually use the Cryptography blocks?
I can create and read the QR code correctly with simple text in it. But if I encrypt text, use it to generate a QR code. I cant then decode the text, all it returns is an empty string.

Enrypting Part
image

Decrypting Part
image

Thank you very much in advance.

Hi everyone, there seems to be to be a bug with the AES-256 decoding. Tried the same blocks with the AES-128 encode/decode and everything worked flawlessly.

1 Like

That is a known problem. Use AES-128,