Skip to content

Commit

Permalink
fix: Feedback addressed by using string library and also expanding th…
Browse files Browse the repository at this point in the history
…e existing accented_chars
  • Loading branch information
zywkloo committed Jan 31, 2024
1 parent 00fbc18 commit 39a25c5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/passwordler/_internals.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# author: Michelle Hunn, Yiwei Zhang
# date: 2024-01-16
original = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q',
'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y',
'Z', 'é', 'è', 'à', 'ü', 'ö', 'ä', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'.', ',', ';', ':', '!', '?', '+', '@', '#', '%', '&', '$', '£', '=', '-', '_', ' ',]
import string

accented_chars = ['á', 'à', 'â', 'ä', 'ã', 'å', 'æ', 'ç', 'é', 'è', 'ê', 'ë', 'í',
'ì', 'î', 'ï', 'ñ', 'ó', 'ò', 'ô', 'ö', 'õ', 'ø', 'œ', 'ú', 'ù', 'û', 'ü', 'ý', 'ÿ']
original = accented_chars + string.ascii_letters + \
string.digits + string.punctuation


def getKeyMap(shuffled, isDecryption=False):
Expand Down

0 comments on commit 39a25c5

Please sign in to comment.