def renderPassword(mdp, quotient, alphabet): if len(mdp) > 14: return mdp quotient, remainder = divmod(quotient, len(alphabet)) mdp += alphabet[remainder] return renderPassword(mdp, quotient, alphabet) alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' print(renderPassword('', int('dc33d431bce2b01182c613382483ccdb0e2f66482cbba5e9d07dab34acc7eb1e', 16), alphabet))