'Fake' end of line (EOF)

168 views Asked by At

I am decrypting a file that apparently contains end of line prior to the actual end of file and I can't seem to find a solution to it. Does anyone have an idea how to keep it as a byte to be decrypted and continue reading until the next EOF?

EDIT: I read the file as:

with open(filename, 'rb') as f:
    content = f.read()

The file itself is encrypted using AES-128 in ECB mode, I haven't managed to read it completely (when reading with 'cat' it also stops after reading 238 characters). I've managed to decrypt the information so far in the file but I've been told that it has a fake EOF and now the decrypted text basically stops in the middle of a sentence

0

There are 0 answers