read the comment that started this thread.
the guy has a file that is pure garbage. not encrypted.
the law officers THINK it's encrypted. the judge orders him to give the key. ...there's no key. it's honestly garbage data.
That's what make encryption special. It were a safe, the police could crack it open somehow. with encryption, they can just claim it's too advanced to be cracked and that will be treated like you are lying.