what if you don't want some law enforcement chump to know a password you potentially use elsewhere such as website, and will have to change after they've had a look.
couldn't you unlock, and change the password to "changeme" for them.
I suggest using https://www.passwordcard.org/en and telling them where the passwords stop and start and make a new card once they release you.