working on integration tests.
modified encrypted key to take into account initial file pointer offsets