One Map

All maps › Refusing to unlock your phone

Can you go to jail for refusing to unlock your phone in your country?

The 2026 map of where refusing to unlock your phone is banned or restricted, aired Nov 16, 2026. Sources

9Banned
10Restricted
175Allowed
AfghanistanAlbaniaAlgeriaAngolaArgentinaArmeniaAustraliaAustriaAzerbaijanBahamasBangladeshBelarusBelgiumBelizeBeninBhutanBoliviaBosnia and Herz.BotswanaBrazilBruneiBulgariaBurkina FasoBurundiCambodiaCameroonCanadaCentral African Rep.ChadChileChinaColombiaCongoCosta RicaCroatiaCubaCyprusCzechiaCôte d'IvoireDem. Rep. CongoDenmarkDjiboutiDominican Rep.EcuadorEgyptEl SalvadorEq. GuineaEritreaEstoniaEthiopiaFalkland Is.FijiFinlandFr. S. Antarctic LandsFranceGabonGambiaGeorgiaGermanyGhanaGreeceGreenlandGuatemalaGuineaGuinea-BissauGuyanaHaitiHondurasHungaryIcelandIndiaIndonesiaIranIraqIrelandIsraelItalyJamaicaJapanJordanKazakhstanKenyaKosovoKuwaitKyrgyzstanLaosLatviaLebanonLesothoLiberiaLibyaLithuaniaLuxembourgMadagascarMalawiMalaysiaMaliMauritaniaMexicoMoldovaMongoliaMontenegroMoroccoMozambiqueMyanmarN. CyprusNamibiaNepalNetherlandsNew CaledoniaNew ZealandNicaraguaNigerNigeriaNorth KoreaNorth MacedoniaNorwayOmanPakistanPalestinePanamaPapua New GuineaParaguayPeruPhilippinesPolandPortugalPuerto RicoQatarRomaniaRussiaRwandaS. SudanSaudi ArabiaSenegalSerbiaSierra LeoneSlovakiaSloveniaSolomon Is.SomaliaSomalilandSouth AfricaSouth KoreaSpainSri LankaSudanSurinameSwedenSwitzerlandSyriaTaiwanTajikistanTanzaniaThailandTimor-LesteTogoTrinidad and TobagoTunisiaTurkeyTurkmenistanUgandaUkraineUnited Arab EmiratesUnited KingdomUnited States of AmericaUruguayUzbekistanVanuatuVenezuelaVietnamW. SaharaYemenZambiaZimbabweeSwatini
Banned (9)Restricted (10)Allowed

Sources: National statutes, read Nov 2026 · Top-court rulings, 2020-2026 · ElcomSoft surveys, Mar-Apr 2026 · How we rate it

Is it banned where you live? Check your country

Banned in 9 countries

  • BruneiBanned

    Refuse police decryption access: up to 3 years in prison.

    Source: Computer Misuse Act s. 18(4)

    Why we rate it this way

    Computer Misuse Act (Cap. 194, 2007 Ed., Attorney General's Chambers print B.L.R.O. 3/2007, full text read 15 Nov 2026 via UNODC SHERLOC): s. 18(1)(c) a police officer may require any person in possession of decryption information to grant access to it; s. 18(1)(b)(i) names the person suspected of using the computer; s. 18(3) needs the Public Prosecutor's consent. s. 18(4): failing to comply with a request under s. 18(1)(b) or (c) is an offence, fine up to B$10,000, up to 3 years' imprisonment, or both. No amendment or repeal found.

  • Refuse decryption access on a police warrant: 2 years in jail.

    Source: Computer Misuse Act s. 16

    Why we rate it this way

    Computer Misuse Act, Chap. 11:17, s. 16(5)(c): a police officer executing a warrant may require any person in possession of decryption information to grant access to it; s. 16(5)(b)(i) names the person suspected of using the computer. s. 16(6): a person who fails to comply with a request commits an offence, liable on summary conviction to a fine of TT$15,000 and imprisonment for 2 years (Ministry of Legal Affairs text, updated to 31 Dec 2007). The 2017 Cybercrime Bill was not found enacted.

  • SingaporeBanned

    Refuse to give police decryption access: up to 3 years in prison.

    Source: Criminal Procedure Code s40

    Why we rate it this way

    Criminal Procedure Code 2010 s. 40(2)(c): an authorised officer may require any person reasonably suspected of possessing decryption information to grant access to it; s. 40(2)(b) names the person suspected of using the computer. s. 40(3): failing to comply is an offence, fine up to S$10,000 or up to 3 years or both; s. 40(4): up to S$50,000 or 10 years where the data holds evidence of a specified serious offence.

  • Refuse your phone PIN in a police search: up to 3 months in jail.

    Source: S&S Act 2012 s. 130, 178

    Why we rate it this way

    Search and Surveillance Act 2012 s. 130: a person exercising a search power may require the user of a device to give access information; s. 178: failing without reasonable excuse is an offence (up to 3 months' imprisonment: Law Commission / Ministry of Justice 'Review of the Search and Surveillance Act 2012' issues paper, para 6.128 n 82 citing s. 178; legislation.govt.nz itself returned 403). Ahmed v R [2026] NZSC 105 (12 Aug 2026): a suspect who refused the PINs to two phones was convicted under s. 178, the Court of Appeal upheld it ([2026] NZCA 78) and the Supreme Court refused leave. At the border: Customs and Excise Act 2018, NZ$5,000 fine.

  • IrelandBanned

    Refuse a password on a search warrant: up to 6 months in prison.

    Source: 2001 Act s. 49; IESC 2025

    Why we rate it this way

    Criminal Justice (Theft and Fraud Offences) Act 2001 s. 48(5)(b): a garda with a warrant may require a person to give any password needed to operate a computer; s. 49(1)(c): failing to comply is an offence, class D fine or up to 6 months or both (Revised Acts). Supreme Court, Poptoshev v DPP [2025] IESC 47 (Nov 2025): s. 49 is constitutional for a suspect who refused passwords to three devices, provided the compelled act is not used against him.

  • BelgiumBanned

    Refuse a judge's order for your phone code: 6 months to 3 years.

    Source: CIC art. 88quater; 2020

    Why we rate it this way

    Code d'instruction criminelle art. 88quater s. 1 and s. 3: anyone who refuses an investigating judge's order to give information on access to a computer system is punished with 6 months to 3 years and a fine (1 to 5 years if cooperation could have prevented a crime). Cour de cassation 4 Feb 2020 (P.19.1086.N): this applies to a suspect who knows the code of his phone. Constitutional Court no. 28/2020, 20 Feb 2020: s. 1 and s. 3 do not violate the Constitution or ECHR art. 6 and 8 (judgment read).

  • FranceBanned

    Refuse your phone code to investigators: up to 3 years in prison.

    Source: Code penal art. 434-15-2

    Why we rate it this way

    Code penal art. 434-15-2: refusing to hand the secret decryption key of an encryption tool to the judicial authorities is punished with 3 years and a 270,000 euro fine (5 years and 450,000 euros if it could have prevented a crime). Conseil constitutionnel 2018: constitutional. Cour de cassation, plenary, 7 Nov 2022 (no. 21-83.146): a phone unlock code counts when the phone encrypts its data. ECtHR Minteh v France (reported May 2026): no violation, per commentary; judgment not read.

  • Refuse a password notice: 2 years, or 5 in national security cases.

    Source: RIPA 2000 s. 49, 53

    Why we rate it this way

    Regulation of Investigatory Powers Act 2000 s. 49 (disclosure notice) and s. 53(1): knowingly failing to disclose a key or password as required by a notice is an offence; s. 53(5A): up to 2 years, or 5 years in a national security or child indecency case (legislation.gov.uk, read Nov 2026). In force since Oct 2007; suspects have been convicted.

  • AustraliaBanned

    Refuse a court order to unlock your phone: up to 10 years in prison.

    Source: Crimes Act 1914 s. 3LA

    Why we rate it this way

    Crimes Act 1914 (Cth) s. 3LA (compilation of 27 Aug 2026): a magistrate may order a person to give the information or help needed to access a device; s. 3LA(2)(b) lists a person 'reasonably suspected of having committed the offence stated in the relevant warrant'. s. 3LA(5): failing to comply, 5 years or 300 penalty units; s. 3LA(6): 10 years or 600 penalty units where the warrant relates to a serious offence or serious terrorism offence (raised from 2 years in Dec 2018).

Everywhere not listed here, refusing to unlock your phone is allowed.

Restricted in 10 countries

  • MalaysiaRestricted

    New 2026 law lets officers demand passwords; start date unclear.

    Source: Cybercrimes Bill 2026

    Why we rate it this way

    Cybercrimes Bill 2026 (replaces the Computer Crimes Act 1997) passed the Dewan Rakyat on 1 Jul 2026 and the Dewan Negara on 20 Jul 2026; clause 36(1)-(2) lets an authorised officer conducting a search demand passwords, encryption or decryption codes (Article 19 / CIJ statement, Jun-Jul 2026; Rahmat Lim, 29 Jul and 6 Aug 2026). No royal assent, gazette or commencement date found, and no penalty for refusal was read. Law passed, in-force status unconfirmed: amber.

  • ThailandRestricted

    Refuse a decryption order: fine up to 200,000 baht, but no jail.

    Source: Computer Crime Act s. 27

    Why we rate it this way

    Computer Crime Act B.E. 2550 (2007) s. 18(7): the competent official may decrypt computer data or require a person concerned with its encryption to decrypt it (court permission needed under s. 19). s. 27: whoever refuses to comply with an order under s. 18 or s. 20 is fined up to 200,000 baht plus a daily fine of up to 5,000 baht until he complies. No prison term (ICJ English text read; the 2017 amendment was not re-read for s. 27). Fines only: amber.

  • South AfricaRestricted

    Others must help police or face 2 years. The suspect is exempt.

    Source: Cybercrimes Act 2020 s. 34

    Why we rate it this way

    Cybercrimes Act 19 of 2020 s. 34(1): an electronic communications service provider, financial institution or person, 'other than the person who is suspected of having committed the offence which is being investigated', who controls data or a computer system under search must give technical and other assistance; s. 34(2): fine or up to 2 years. The suspect is expressly exempt. RICA 2002 decryption directions (s. 21, 29) bind 'decryption key holders' for intercepted communications. Third parties only: amber.

  • SwedenRestricted

    Since 2022 police can make you unlock by fingerprint or face.

    Source: Prop. 2021/22:119; RB ch 27

    Why we rate it this way

    Since 1 Jun 2022 (Prop. 2021/22:119 'Modernare regler for anvandningen av tvangsmedel', adopted by the Riksdag; rattegangsbalken ch. 27 s. 17 f) a person must, on a police order, cooperate in biometric authentication (fingerprint, face) to open a phone or other information system. No duty to reveal a password or PIN. Forced biometrics only: amber.

  • NorwayRestricted

    Since 2017 police can force your finger or face onto the phone.

    Source: Straffeprosessloven s 199a

    Why we rate it this way

    Criminal Procedure Act s. 199 a, amended June 2017 after the Supreme Court found no legal basis in 2016: police may order anyone dealing with a data system to open it by biometric authentication and may carry it out by force if the person refuses (EFN; Digital Evidence and Electronic Signature Law Review). No duty on a suspect to reveal a password. Forced biometrics only: amber.

  • NetherlandsRestricted

    No password duty for suspects, but police may force a fingerprint.

    Source: Hoge Raad, 9 Feb 2021

    Why we rate it this way

    Hoge Raad 9 Feb 2021 (ECLI:NL:HR:2021:202): police may place a suspect's finger on a seized phone with slight force; giving up a password or PIN is different because it is a statement by the suspect. Code of Criminal Procedure art. 125k: a decryption order cannot be addressed to the suspect. Forced biometrics only: amber.

  • GermanyRestricted

    No password duty, but police may force your finger on the phone.

    Source: BGH, 13 Mar 2025

    Why we rate it this way

    No duty to give a password (nemo tenetur; a suspect cannot be jailed for refusing). But the Federal Court of Justice held on 13 Mar 2025 (2 StR 232/24) that investigators may forcibly place a suspect's finger on the phone sensor under StPO s. 81b(1), given a search warrant and proportionality. Forced biometrics only: amber.

  • IndiaRestricted

    The law says up to 7 years, but courts are split on suspects.

    Source: IT Act s. 69; HC rulings

    Why we rate it this way

    Information Technology Act 2000 s. 69 (as amended 2008): a subscriber, intermediary or person in charge of a computer resource who fails to assist with decryption when directed faces up to 7 years. Whether an accused can be compelled is unsettled under Constitution art. 20(3): Karnataka High Court (Virendra Khanna, Mar 2021) said yes, a Delhi High Court bail order and a CBI special court said no; no Supreme Court ruling (SCC Online 2023; LiveLaw). Courts split: amber.

  • CanadaRestricted

    Police can't force a password. Border officers can charge you.

    Source: Customs Act s. 153.1

    Why we rate it this way

    Police cannot compel a password: R v Shergill (2019 ONCJ 54) refused to order an accused to unlock his phone, citing the Charter right to silence. At the border, Alain Philippon was charged under Customs Act s. 153.1(b) (hindering) for refusing his phone password in March 2015 and pleaded guilty (2016); no Charter ruling. Border only: amber.

  • United StatesRestricted

    No law. Courts are split, and a judge can jail you for contempt.

    Source: 5th Amendment; courts split

    Why we rate it this way

    No key-disclosure statute. Fifth Amendment case law is split: Pennsylvania and Indiana supreme courts say a compelled passcode is protected; New Jersey and Illinois (People v Sneed) say it can be compelled; Florida appeal courts conflict; federal circuits differ (CRS LSB10416). Refusing a court order can mean jail for civil contempt (Francis Rawls was held about four years). No Supreme Court ruling found Nov 2026. Courts split: amber.

Show the 175 countries where it is allowed

No qualifying national law was found for these countries in the sources under Sources.

All 194 countries: can you go to jail for refusing to unlock your phone?

Sources

Red means a suspect can be sent to prison just for refusing to give police or a court the password, PIN or decryption key to a phone, after a lawful order such as a warrant or a judge's notice. Amber means no clean answer: courts are split, the rule applies only at the border, only other people (not the suspect) must help, the penalty is only a fine, or police may force a fingerprint or face unlock but cannot demand the code. Green means no such offence was found, or the right to silence covers passwords. Police in green countries can still seize a phone and try to break into it.

  • National statutes, read Nov 2026: UK Regulation of Investigatory Powers Act 2000 s. 49 and 53; Australia Crimes Act 1914 s. 3LA (compilation of 27 Aug 2026); France Code penal art. 434-15-2; Belgium Code d'instruction criminelle art. 88quater; Ireland Criminal Justice (Theft and Fraud Offences) Act 2001 s. 48-49; Singapore Criminal Procedure Code 2010 s. 40; New Zealand Search and Surveillance Act 2012 s. 130 and 178; Trinidad and Tobago Computer Misuse Act Chap. 11:17 s. 16; Bahamas Computer Misuse Act s. 16; South Africa Cybercrimes Act 19 of 2020 s. 34; Thailand Computer Crime Act s. 18(7) and 27; Brunei Computer Misuse Act Cap. 194 s. 18 (2007 Ed., read 15 Nov 2026)
  • Top-court rulings, 2020-2026: France Cour de cassation, plenary, 7 Nov 2022 (no. 21-83.146); Belgium Cour de cassation 4 Feb 2020 (P.19.1086.N) and Constitutional Court no. 28/2020 of 20 Feb 2020; Ireland Supreme Court, Poptoshev v DPP [2025] IESC 47; New Zealand Supreme Court, Ahmed v R [2026] NZSC 105 (12 Aug 2026); Germany BGH 13 Mar 2025 (2 StR 232/24); Netherlands Hoge Raad 9 Feb 2021 (ECLI:NL:HR:2021:202)
  • ElcomSoft surveys, Mar-Apr 2026: 'The Geography of Coercion', 'Digital Rights vs. State Power - The Protectors' and 'Compelled Decryption: The East Asian Region' (blog.elcomsoft.com). Used as the starting roster with Wikipedia's 'Key disclosure law', then checked row by row

Each country in the lists names the source for its rule; countries not listed had no qualifying national law in these sources. Laws as of Nov 15, 2026. We map the law on the books, not how well it is enforced.

Laws as of Nov 15, 2026. Each row names its source.Report a mistake

Vote for what we map next
Use this map

Free for articles, lessons and videos. Just credit One Map with a link.

Press, teachers & creators →

More ban maps

A new ban map every day

Which country bans what, mapped in 30 seconds.

12M+ views a month