261
261
if s_password.startswith('$'):
263
263
# ecnryption type. We'll re-use that, and make a salt
264
264
# that's the same size as the old
271
271
enc_pass = agentlib.encrypt_password(password, salt)
272
272
f.write("%s:%s:%s" % (s_user, enc_pass, s_rest))