Added the function of encryption and file settings