remove TODO comment
add ENCDATA encoding, with test
split buffer into IV and encrypted data if enough data is present