Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug In foursquare.py, Line 27 #18

Open
Th3Tr1ckst3r opened this issue Nov 13, 2023 · 0 comments
Open

Bug In foursquare.py, Line 27 #18

Th3Tr1ckst3r opened this issue Nov 13, 2023 · 0 comments

Comments

@Th3Tr1ckst3r
Copy link

>>> from pycipher import Foursquare
>>> ciphertext = Foursquare(key1='zgptfoihmuwdrcnykeqaxvsbl',key2='mfnbdcrhsaxyogvituewlqzkp').encipher('Hello World!')  
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/linuxuser/.local/lib/python3.9/site-packages/pycipher/foursquare.py", line 49, in encipher
    a,b = self.encipher_pair(string[c],string[c+1])
  File "/home/linuxuser/.local/lib/python3.9/site-packages/pycipher/foursquare.py", line 27, in encipher_pair
    return (self.key1[arow*5+bcol], self.key2[brow*5+acol])
TypeError: list indices must be integers or slices, not float

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant