Code to convert bais to baos to test encryptePayload() and packageMessange() functions