Uses REXML for encoding of password.