faker.providers.ssn.en_CA
¶
Package Contents¶
Classes¶
Functions¶
|
Determine validity of a Canadian Social Insurance Number. |
- class faker.providers.ssn.en_CA.SsnProvider(generator: Any)¶
Bases:
faker.providers.BaseProvider
- faker.providers.ssn.en_CA.checksum(sin)¶
Determine validity of a Canadian Social Insurance Number. Validation is performed using a modified Luhn Algorithm. To check the Every second digit of the SIN is doubled and the result is summed. If the result is a multiple of ten, the Social Insurance Number is considered valid.
- class faker.providers.ssn.en_CA.Provider(generator: Any)¶
Bases:
faker.providers.ssn.Provider