how does file encrypt work?