'get legal password'

def get_password(self, servertime, nonce, pubkey):

    string = ((((str(servertime) + ' DCTB ') + str(nonce)) + '\n') + str(self.pass_word)).encode('utf-8')
    public_key = rsa.PublicKey(int(pubkey, 16), int('10001', 16))
    password = rsa.encrypt(string, public_key)
    password = binascii.b2a_hex(password)
    return password.decode()
