You might want to start by reading about Individual Rehabilitation (permanent) and Temporary Resident Permits, which can be used to enter Canada after a conviction.
If the crime committed would have a maximum penalty over 10 years in Canada, you’ll probably have to go the route of Temporary Resident Permit.
Get an immigration attorney, a competent one. This is not the kind of question for which you solicit answers from random guys on the internet. It is not a trivial matter.
Typically the fact that the law has changed does not mean immigration violations of that law in the past are forgiven because the issue is it implies you do not have a problem breaking the law, so you’re viewed as more inclined to break other laws.
Credit:stackoverflow.com‘