Implement encryption of file

@alexeyvo , the reason you had to write a custom file_readv is mainly to check the status of flags calculated during the decompression/decrypt of chunk?