A number of people share passwords as part of a romantic relationship. Some partners will know each other’s PINs for mobile phones, email passwords and Instagram usernames. A person’s accounts may also remain logged in on a computer or tablet they both share.
After the relationship ends, does the former partner still have access to the other person’s account?
You may know your former partner’s password, or their account may still be logged in on your laptop. Because some platforms, such as Instagram, save previously entered usernames and passwords, you may be automatically logged back into their account.
That does not mean you have permission to access their account.
Depending on the circumstances, accessing your ex-partner’s email, social media or other online accounts without authorization may create criminal liability in Canada. Depending on the actions taken after accessing the account, there may be additional criminal liability.
Does Accessing Another Person’s Account Create Criminal Liability?
According to section 342.1 of the Criminal Code, unauthorized use of computers can involve fraudulently obtaining a computer service without colour of right. Fraudulently generally refers to acting dishonestly. Colour of right refers to having a legitimate basis for the conduct.
The Criminal Code states that a “computer service” includes the retrieval and storage of computer data. Therefore, unauthorized access to an online account may create potential criminal liability beyond merely breaching the terms of service of Instagram, Gmail or another online platform.
Unauthorized use of a computer under section 342.1 is a hybrid offence. If the prosecution proceeds by indictment, unauthorized use of a computer can be punishable by up to 10 years of imprisonment.
However, every case depends on its unique set of facts. Knowing another person’s password does not automatically mean that a criminal offence has been committed.
Important questions regarding unauthorized access to an online account may include:
- Why did you access the account?
- Was consent ever given to access the account?
- What actions took place after you gained access?
Was Consent Ever Given?
If a former partner gave you access to their online account by providing you with the password before the relationship ended, this can create a more complex situation.
Consider a couple who have been together for five years and regularly give each other access to their phones and devices while also sharing passwords. One partner provides access to their email account so the other person can retrieve flight confirmation numbers, bills and other information. This happens on many occasions.
After they separate, several weeks pass and one partner logs into the former partner’s email to see who they have been communicating with.
Although the original password was provided with consent before the separation, this does not necessarily provide continuing consent to access the email account.
Whether you had consent to continue accessing your ex-partner’s email account can depend on the circumstances. For instance, consent to access an email account to retrieve a single bill is different from unlimited permission to review all personal communications over time.
Access that was permitted during a relationship may also no longer be permitted after the relationship ends.
If your ex-partner explicitly tells you to stop logging into their accounts, the situation becomes significantly clearer.
What If Their Account Remains Open on My Device?
Another common situation arises because of automatic login features.
Your ex-partner may have used Instagram on your tablet while you were together and never signed out. Months after the breakup, you may open the Instagram app and find that you still have full access to their account.
Even though you technically have access to the account, that does not necessarily mean you have authorization to use it.
Similar reasoning can apply to saved passwords, computers used jointly by both parties and browsers that automatically fill in login credentials.
One important distinction exists between unknowingly discovering that an account remained signed in and knowingly using that access to review private communications, search through private documents or monitor someone’s activity.
How you gained access, what actions you took afterwards and what you believed about your authorization can all be relevant factors.
What If I Just Read the Messages?
Some individuals may believe that unauthorized access will only constitute a criminal offence if they delete something, reply to someone else or change a password.
Section 342.1 is broader than this.
The Criminal Code defines a “computer service” as including the retrieval of computer data. Based on this definition, depending on the circumstances, accessing an online account without authorization simply to retrieve or view private information may potentially fall within the unauthorized-use provisions of the Criminal Code.
As an example, consider a person who repeatedly logs into an ex-partner’s email solely for the purpose of reading new messages.
The person does nothing else. They do not delete any communications, reply to any messages or change any information. They simply continue monitoring new communications as they are received.
The fact that the person does not take any further action does not necessarily eliminate the potential legal consequences associated with unauthorized access.
Modifying or Deleting Data Can Create More Serious Implications
If someone begins modifying data within an online account, this can create additional legal issues.
Section 430 of the Criminal Code specifically addresses mischief in relation to computer data. Mischief involving computer data may apply in circumstances where someone intentionally destroys or alters computer data, renders data unusable, prevents access by someone lawfully entitled to access it or otherwise interferes with its lawful use.
Mischief in relation to computer data is a hybrid offence that can be punishable by up to 10 years of imprisonment if prosecuted by indictment.
Examples of conduct that may raise issues involving mischief in relation to computer data include:
- deleting emails
- modifying stored data
- changing a user’s password
- denying the account owner access
- deleting images, documents or files
- interfering with business communications
- altering messages or other data stored on an account
Therefore, logging into an account and intentionally modifying its contents can create additional potential legal consequences.
Contact A. Dhillon Law
A. Dhillon Law represents individuals charged all criminal offences in Brampton and throughout Southern Ontario.
Contact A. Dhillon Law or call (647) 963-3612 to schedule a free, no-obligation consultation.

