I flew into the US this morning (Green Card holder), and before I landed I changed my password to a random string that I had put in my home directory and a USB stick in my house. I did not know what the string was (being 16 bytes from /dev/random base64 encoded), and thus could not give up my password. My reasoning was they could go to my home and retrieve the USB stick, but they'd need a warrant.
I understand I would've been detained for a significant amount of time, but I also would not have been able to give them my password. Do they have to release me after a while, or can they just kick me out (Greencard's a little stronger than a visa, but I'm not a citizen)?