code: def compare_password(expected, actual):
      
      if expected == actual:
          return True, "OK"
      msg = []
      ver_exp = expected[-8:].rstrip()
      ver_act = actual[-8:].rstrip()
  
      if expected[:-8] != actual[:-8]:
          msg.append("Password mismatch")
      if ver_exp != ver_act:
          msg.append("asterisk_mbox version mismatch.  Client: '" +
                     ver_act + "',  Server: '" + ver_exp + "'")
      return False, ". ".join(msg)
docs: Compare two 64byte encoded passwords.