Preserving encrypted passwords during configuration archive and restore