Signing ByteArray

Hi!

I'm trying to encrypt a 16 byte long array.
The problem is, that the encrypt  method only takes a String parameters. So it is possible that at index 7 is a #0-value or index 6 is #0 and index 7 is #23. The method then throws an exception "not a mutiple of 16".
Is there any possibility to encrypt some kind of memory?

kind regards

I'm on Android with FMX

Hello Thomas,
What are the TAESEncryption parameters you use ?
Best regards,
Marion