Skip to content

Bug In foursquare.py, Line 27 #18

Description

@Th3Tr1ckst3r
>>> 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions