Implement encryption of file