made encrypt use save_config()