Implement file encryption