You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 rivejä
417 B

  1. def renderPassword(mdp, quotient, alphabet):
  2. if len(mdp) > 14:
  3. return mdp
  4. quotient, remainder = divmod(quotient, len(alphabet))
  5. mdp += alphabet[remainder]
  6. return renderPassword(mdp, quotient, alphabet)
  7. alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
  8. print(renderPassword('', int('dc33d431bce2b01182c613382483ccdb0e2f66482cbba5e9d07dab34acc7eb1e', 16), alphabet))