def auth_password(self, password):

        self.authentication['password'] = password.strip()
        self.authentication['printedPassword'] = ''
        for _ in password:
            self.authentication['printedPassword'] += '*'
        self.log.debug(
            '[sref:%s] Received AUTH Password: %s', self.sessionRef, self.authentication['printedPassword'])

        # Authentication check against configured admin
        if (self.authentication['username'] == self.factory.config.admin_username and
                md5(self.authentication['password']).digest() == self.factory.config.admin_password):
            # Authenticated user
            self.authentication['auth'] = True
            self.prompt = self.oldPrompt
            self.drawMotd()
        else:
            self.prompt = 'Username: '
            self.authentication = {'username': None, 'password': None,
                                   'printedPassword': None, 'auth': False}
            return self.sendData('Incorrect Username/Password.\n')

        return self.sendData()
Authentify Username & Password against configured (jasmin.cfg) credentials
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/cli/jcli.py/JCliProtocol.auth_password