- Changed encrypt to a bytebuffer