4

A person I know sent me an encrypted .zip archive and I do not know what data is inside. Is it legal to break the password and open the archive, for example, by using a brute force algorithm? The algorithm may need a long time, but it will reveal the password that was used for the encryption.

The file was sent directly to me and I know that I am meant to be the recipient. I assume that the file was protected by accident.

Would the answer be different if I am not the intended recipient and someone sent me the file by accident?

We both live in Germany.

1
  • It is done in the US on legal discovery all the time. If the file was sent to you by mistake I don't know. IANAL
    – paparazzo
    Commented Jun 5, 2018 at 15:46

2 Answers 2

5

If you aren’t the intended recipient of the password-protected file:

  • StGB § 202a makes it illegal to access this file

  • StGB § 202c makes it illegal to obtain (e.g., by brute forcing) the password for this file, if you intend to access the file that way (in the sense of § 202a)

    (this is the so-called hacker paragraph)

If you are the intended recipient, this law doesn’t seem to apply, and it shouldn’t be illegal to brute-force the password.

2
  • Those paragraphs perfectly describe the situation where I am not the intended recipient, thank you.
    – pschill
    Commented Jun 5, 2018 at 20:42
  • 1
    How does this work is the recipient doesn't know if they are the correct recipient or not?
    – jrtapsell
    Commented Jun 7, 2018 at 10:36
2

I'm going to go with yes, it's legal but it's not advised. But first, allow me to explain:

I believe the contents of the file will be what determines whether or not you break the law. Whilst you may be the intended recipient of this encrypted file, the subject of "how" you access it will not the issue. Yes, you could crack the password on it but if you are only gaining access to an empty folder then you could argue that you have not gained unauthorised access to anything. If the folder happens to contain some confidential information from Area 51 (obviously as an example), then you have accessed data you are not authorised to access.

Now, you could argue that you cracked the password but didn't access any files within the folder. You can't say that just because you have access to something that you definitely used it - after all people have knives in their kitchens but they don't go stabbing people every day.

My opinion is that it's best to ask your friend what exactly the data is within this file. Until then, you risk infringing data protection laws. If you do crack the file, you are riding the edge of a very fine knife.

3
  • So the problem is that I may access data that I am not authorized to access? What if someone sends me confidential data in an unencrypted way and I read it? Then I also access data I am not authorized to access, but only by accident. How am I supposed to know that the data is confidential?
    – pschill
    Commented Jun 5, 2018 at 14:05
  • 1
    @pschill Huge difference if you read something accidentally or if you need to use much force to get something. Same reason why breaking into a house with an open door doesn't gets the same punishment like if its locked.
    – user9886
    Commented Jun 5, 2018 at 15:32
  • @Swizzler Makes no sense. He was sent the file. Hardly the legal definition of breaking and entering.
    – paparazzo
    Commented Jun 5, 2018 at 15:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .