What offence if any is committed by guessing a combination entry lock on a door?
<p>If one effectively guesses the correct passcode to the lock so as to open it without causing any damage and then peacefully enters (seemingly a mere civil trespass) the (previously) secured premises, do they commit any criminal offence?</p>

<p><strong>None</strong>, if the intention is merely trespassing, unlike <a href="https://www.legislation.gov.uk/ukpga/1968/60/section/9?timeline=false" rel="noreferrer">burglary</a> which requires intent to steal, commit criminal damage, or inflict grevious bodily harm or if the building is a <a href="https://www.legislation.gov.uk/ukpga/2005/15/part/4/crossheading/trespass-on-designated-site?timeline=false" rel="noreferrer">protected site</a> - neither of which isn't evident from the question.</p>
<p>Note, for both offences, the <em>actus reus</em> is <strong>entry</strong> - there is no requirement for any form of &quot;breaking&quot;</p>
<p>Further to ohwilleke's comment, unless the lock is damaged or destroyed etc, then there is no offence of <a href="https://www.legislation.gov.uk/ukpga/1971/48/section/1?timeline=false" rel="noreferrer">criminal damage</a></p>

<p><a href="/questions/tagged/canada" class="post-tag" title="show questions tagged &#39;canada&#39;" aria-label="show questions tagged &#39;canada&#39;" rel="tag" aria-labelledby="tag-canada-tooltip-container">canada</a></p>
<p>This would be breaking and entering contrary to <a href="https://laws-lois.justice.gc.ca/eng/acts/C-46/section-348.html" rel="noreferrer">s. 348</a> of the <em>Criminal Code</em>.</p>
<p>&quot;Breaking&quot; under this offence means &quot;to break any part, internal or external, or ... to open any thing that is or intended to be used to close or cover an internal or external opening&quot; (s. 321).</p>
<p>A person is deemed to have broken and entered if they &quot;enter[] without lawful justification or excuse by a permanent or temporary opening&quot; (s. 350). Even entry through an unlocked door, when it is done without consent, is deemed to be breaking and entering. See <em>Todorov c. R.</em>, <a href="https://canlii.ca/t/ghjlj" rel="noreferrer">2015 QCCA 812</a>.</p>

<h2><a href="https://legislation.nsw.gov.au/view/whole/html/inforce/current/act-1901-033#sec.4" rel="noreferrer">Unlawful entry on Inclosed Land</a></h2>
<p><a href="/questions/tagged/new-south-wales" class="post-tag" title="show questions tagged &#39;new-south-wales&#39;" aria-label="show questions tagged &#39;new-south-wales&#39;" rel="tag" aria-labelledby="tag-new-south-wales-tooltip-container">new-south-wales</a></p>
<p>Under s4 of the Inclosed Lands Protection Act 1901:</p>
<blockquote>
<p>(1)  Any person who, without lawful excuse (proof of which lies on the person), enters into inclosed lands without the consent of the owner, occupier or person apparently in charge of those lands, or who remains on those lands after being requested by the owner, occupier or person apparently in charge of those lands to leave those lands, is liable to a penalty not exceeding …</p>
</blockquote>
<p>There is an additional penalty if you don’t close the door when you leave. Because the Act is primarily about protecting agricultural land and leaving gates open can lead to stock wandering but it is applicable to all land.</p>

<p><a href="/questions/tagged/illinois" class="post-tag" title="show questions tagged &#39;illinois&#39;" aria-label="show questions tagged &#39;illinois&#39;" rel="tag" aria-labelledby="tag-illinois-tooltip-container">illinois</a></p>
<p>This answer assumes no intent of wrongdoing other than opening the lock was proven by the prosecution.</p>
<p>Tampering with security devices is a class 4 felony. The bold text below is mine.</p>
<blockquote>
<p>(720 ILCS 5/17-11.5) (was 720 ILCS 5/16-22)<br />
Sec. 17-11.5. Tampering with a security, fire, or life safety system.<br />
(a) A person commits tampering with a security, fire, or life safety system when he or she knowingly damages, <strong>sabotages</strong>, destroys, or causes a permanent or <strong>temporary malfunction</strong> in any physical or electronic security, fire, or life safety system or any component part of any of those systems including, but not limited to, [...] (a long list of devices) [...].<br />
(b) Sentence. A violation of this Section is a Class 4 felony.</p>
</blockquote>
<p>The lock suffered a temporary malfunction, as it was not doing its job of keeping the door closed. The security feature was also sabotaged (though not harmed), not fulfilling its function, when it was left open.</p>
<p><a href="https://definitions.uslegal.com/s/sabotage/" rel="noreferrer">https://definitions.uslegal.com/s/sabotage/</a></p>
<blockquote>
<p>Sabotage is the act of hampering, deliberating subverting, or hurting the efforts of another.</p>
</blockquote>
<p>In this case, the efforts of whoever wanted the door to stay locked were <em>sabotaged</em>.</p>
<p>Did the intruder tamper with the lock?</p>
<p><a href="https://definitions.uslegal.com/t/tampering/" rel="noreferrer">https://definitions.uslegal.com/t/tampering/</a></p>
<blockquote>
<p>Tampering is an intentional act of interfering improperly or in a harmful manner. [...]</p>
</blockquote>
<p>By switching the lock to &quot;open&quot; without permission, the person exposed the secured area to intruders (and became one in the process). Testing combinations until the correct one was entered is an intentional act. The opening of the lock is harmful as it compromises the security of the venue.</p>
<p>The trespasser, aside from civil charges, can also face 1 to 3 years in prison and fines up to USD 25k. (730 ILCS 5/5-4.5-45)</p>

<p><a href="/questions/tagged/victoria" class="post-tag" title="show questions tagged &#39;victoria&#39;" aria-label="show questions tagged &#39;victoria&#39;" rel="tag" aria-labelledby="tag-victoria-tooltip-container">victoria</a></p>
<p>Summary Offences Act 1966, Section 9(1)(e)</p>
<blockquote>
<p>without express or implied authority given
by the owner or occupier or given on behalf
of the owner or occupier by a person
authorised to give it or without any other
lawful excuse, wilfully enters any private
place or Scheduled public place, unless for a
legitimate purpose; or</p>
</blockquote>
<p>Normally prosecuted as &quot;unlawfully on premises&quot;. Note: for whatever reason, section 9 is titled <strong>Wilful destruction, damage etc. of property</strong>, which makes it a little harder to find.  This is a summary offense tried by a magistrate without a jury, so &quot;lawful&quot; and &quot;legitimate&quot; are not complicated legal terms: they limit rather than extend the terms &quot;excuse&quot; and &quot;purpose&quot;.</p>

criminal-law england-and-wales trespass