in reply to pack and AES help needed
See packing into a byte token for pack info regarding a very similar problem.