Skip to content

Tag: cryptography

cryptography.fernet.InvalidToken problem with cryptography

Getting this error when trying to run this: FYI dk variable is defined with key (default key) Edit: I added the key for those who asked Answer I have found out, through trial and error with the same project later down the line, that you need to turn your key into something like this key = b’niwaXsYbDiAx…

AES encryption between iOS and Python

I have functions to encrypt/decrypt using AES (128 and 256) on both iOS (CCCrypt) and python (pycryptdome). All test cases working on each platform but… when I take an AES key and encrypted string from iOS to python the decryption fails. I have looked extensively and tried various use cases to no avail.…