PanicStation.org
us Legal, police, prison & official contact

What to do if…
police ask you to hand over passwords or account logins

Produced and maintained by PanicStation.org Published: Last reviewed: Editorial policy USA guide

Short answer

Do not volunteer passwords, codes, or account access on the spot. Ask whether you are free to leave, say that you choose to remain silent and do not consent to a search, and ask to contact a criminal defense lawyer promptly.

Do not do these things

  • Do not voluntarily type a passcode, sign in to an account, or share a password, verification code, backup code, recovery key, or password-manager access before getting legal advice.
  • Do not consent to a search of your devices or accounts just because you feel pressured or confused.
  • Do not explain your case, guess at answers, or make false statements.
  • Do not delete messages, wipe devices, reset accounts, or change information to try to fix the situation. That may create additional legal problems.
  • Do not physically resist, interfere with officers, or argue about the law on the spot.
  • Do not assume that a warrant, subpoena, or court order answers every question about whether you personally must disclose a password or log in.

What to do now

  1. Ask calmly: “Am I free to leave?”
    • If the answer is yes, leave calmly and contact a criminal defense lawyer before responding further.
    • If the answer is no or unclear, do not walk away. Stay calm and do not physically resist or interfere.
  2. Say clearly: “I choose to remain silent. I want to speak with a lawyer. I do not consent to a search of my devices or accounts.”
  3. If officers say they have legal paperwork, ask to see it. Ask what device, account, or information it covers. Ask for a copy, or ask whether you may photograph it. Do not argue about its meaning on the spot.
  4. If officers keep asking for a password, passcode, login, or verification code, repeat: “I am not voluntarily providing passwords, codes, or account access. I want to speak with a lawyer.”
  5. If officers say that a warrant, subpoena, or court order requires your cooperation, ask for an opportunity to contact a lawyer promptly. Do not physically obstruct officers carrying out a search.
  6. As soon as you safely can, write down the agency, officer names or badge numbers, date and time, what access was requested, what you said, and whether you were shown any paperwork. Keep any paperwork or account-provider notices for your lawyer.

What can wait

  • You do not need to explain your side of the investigation in the moment.
  • You do not need to decide whether to provide any access beyond what legal advice and any applicable order require.
  • You do not need to contact your employer, school, family, or account provider immediately unless there is a separate urgent reason.
  • You do not need to rush to reset passwords, change settings, or make account changes. If there is a separate urgent security problem, try to get legal advice before making changes where possible.
  • You can review provider emails, login alerts, and other notices with a lawyer later.

Important reassurance

Feeling pressured or freezing up during a police encounter is understandable. Passwords, passcodes, and account logins can open access to more information than expected. Pausing, declining voluntary access, and asking for legal advice are reasonable first steps.

Scope note

These are first steps only. The rules for device searches, account access, passwords, passcodes, and compelled unlocking can depend on the facts, the location, and the type of legal paperwork involved. Later decisions may need help from a criminal defense lawyer.

Important note

This is general information, not legal, financial, medical, therapeutic, or other professional advice. In the USA, the Supreme Court has said that police generally need a warrant to search digital information on a cell phone seized from an arrested person, but exceptions can apply. Different questions may arise with consent, account data, cloud services, borders, probation or parole conditions, subpoenas, and court orders. A criminal defense lawyer can advise on your specific situation.

Additional Resources

About this guide

This guide was produced and is maintained by PanicStation.org using its published editorial process. Official and specialist sources are checked where relevant, and AI-assisted tools may be used for drafting, organisation, and consistency checks. The site operator remains responsible for publication, revision, and removal decisions.

Support us