The UK has a similar law [0], which has been used in the past to prosecute people for not disclosing their passwords [1].
[0]: https://en.wikipedia.org/wiki/Regulation_of_Investigatory_Po...
[1]: https://www.newstatesman.com/blogs/the-staggers/2010/10/poli...