import sys,pyDes password = your16charString result = pyDes.des([232, 74, 214, 96, 196, 114, 26, 224]).decrypt(bytearray.fromhex(password)).decode('utf-8').replace('x00', '') print result