While I'm sure you are referring to the Alain Philippon case, your facts are wrong.
Firstly, the CBSA action was never tested in court. Failure to divulge information hasn't been defined as 'hindering' before. The case would probably have to go to the Supreme Court of Canada for it to be decided.
Secondly, even at the border you can choose to remain silent.
See linked page for advice from actual lawyers.
The most likely worst outcome is you get refused entry if you are not Canadian.
In Canada you can be put in prison for 1 year if you don't give up your password at the border.