validate_rut
cl_forge.verify.validate_rut
¶
Validates a Chilean RUT/RUN by checking if the provided verifier digit matches the calculated one using Module 11 algorithm.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
digits
|
int
|
Numeric part of the RUT/RUN (digits only). |
required |
verifier
|
str
|
Verifier digit to validate against: "0".."9" or "K". |
required |
Returns:
| Type | Description |
|---|---|
bool
|
|