added the file encrypt

still need to implement the decrypt