using registry to save settings,enc/dec pwd