worked with John's API, found issue with asserts in Alex's code about block size mismatch (possibly due to base64 encoding)