def _set_password(self, passwd): eng = AES.new(get_key(), AES.MODE_ECB) self._password = hexdigest(eng.encrypt((passwd + b"\0"*(16 - len(passwd)))[:16]))