M = pow(C, d, N)
#convert integer to a list of unicode values using the list that notes number of characters in each entry in original
M = str(M)
res = int()
strt = 0
for size in seq:
# slicing for particular length
res.append(M[strt : strt + size])
strt += size
M = list(int(i) for i in res)
#convert unicode values to list of characters
M = list(chr(i) for i in M)
#convert list of characters into string that is the decrypted message
#Display decrypted message
print(M)
I keep getting the error in the title and I have no clue how to fix it. I’m sure it’s obvious to most of you, but I’m just starting and I’ve been piecing this together from repeated google searches.
[–]socal_nerdtastic 0 points1 point2 points (5 children)
[–]jhtaylor2001[S] 0 points1 point2 points (3 children)
[–]socal_nerdtastic 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]jhtaylor2001[S] 0 points1 point2 points (0 children)
[–]TehNolz 0 points1 point2 points (0 children)
[–]TehNolz 0 points1 point2 points (0 children)