Byte array string operations

[ Follow Ups ] [ BasicCard User Forum ]

Posted by ericc ( on May 09, 2006 at 09:58:21:

Hi. I am using the AES encryption library and have a "Basic" question. The AES functions requrie inputs and outputs to be in the form of strings$. For my applications, the inputs to the AES function are 16-byte arrays:

Private DataArray(16) as Byte
Private AESKey(16) as Byte

My question is how can I elegantly convert or cast these 16-byte arrays into 16-character strings? Also, how can I do the inverse -- convert/cast 16-character strings into 16-byte arrays? I know of several VB functions that can perform these tasks, but none of them seem to be defined in the BasicCard enviroment.



Follow Ups:

[ Follow Ups ] [ BasicCard User Forum ]