In the US, they can't force you to give a password. Because they can't prove you haven't forgotten it.
In this case, it was an officer who was attempting to gain unauthorized access to a device and then accidentally entered a code that caused it to wipe its own data
So the activist has a pretty good case here to sue the officer for damages