Don't try to hack around the law. You'll fail.
These sort of laws create many problems one can not hope solve without a few punishing/ruining the life/killing of a few innocent bystanders.
Reply will be: "You'll get plenty of time in jail to relax and think about it".
There's a guy currently sitting in a US jail, I think in Georgia, held on contempt of court charges. He was originally charged with murder, and during his trial, he managed to goad the judge into an absurd argument, part of which involved the defendant wanting to defend himself. I'll skip the details. There's a Rick and Morty cartoon out there about it...
Anyways, to my point. The judge has the power to keep this guy in jail more or less indefinitely. You can argue with the cops, you can argue with your lawyer, but if it's in the law and you try to argue it with the judge, you're staying in jail.
Which if you think about it is stupid since in a situation where you have encrypted data that proves your are a terroist, paedophile or serious criminal, 2 years for not disclosing your password vs 10+ for disclosing it is simple game theory.
Not to mention the stigma of going to prison for not disclosing your password vs the above mentioned crimes.