Skip to content

Digit check and formatting on Brazilian Individual Taxpayer Registry (CPF).

Notifications You must be signed in to change notification settings

tallesl/net-Cpf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

Cpf

Digit check and formatting on Brazilian Individual Taxpayer Registry (CPF).

Usage

using CpfLibrary;

Cpf.Check("29594421134");    // True
Cpf.Check("488.081.131-91"); // True
Cpf.Check("00000000000");    // False
Cpf.Check("lol");            // False

Cpf.Format("29594421134"); // "295.944.211-34"
Cpf.Format("lol");         // "lol"