We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 221161a commit 213edc9Copy full SHA for 213edc9
ciphers/base62.py
@@ -39,11 +39,9 @@ def base62_decode(string_val: str) -> int:
39
strlen = len(string_val)
40
num = 0
41
42
- idx = 0
43
- for char in string_val:
+ for idx, char in enumerate(string_val):
44
power = strlen - (idx + 1)
45
num += CHARSET.index(char) * (base**power)
46
- idx += 1
47
return num
48
49
0 commit comments