en-US/about_CPR.help.txt

TOPIC
    about_cpr
 
SHORT DESCRIPTION
    The CPR module provides tools for generating, validating, obfuscating, and
    parsing Danish civil registration numbers (CPR numbers).
 
LONG DESCRIPTION
    The CPR module is designed to work with Danish civil registration numbers
    (CPR numbers). It includes commands to generate random CPR numbers for
    testing purposes, validate their structure and checksum, obfuscate CPR
    numbers for anonymization, and parse CPR numbers to extract information such
    as birthdate, age, and gender. This module is particularly useful for
    developers working on systems that require CPR numbers in test environments.
 
Optional Subtopic
    FEATURES OF THE CPR MODULE
    -
    Generate CPR Numbers
    : Create random CPR numbers for testing. -
    Validate CPR Numbers
    : Ensure CPR numbers are structurally correct and pass checksum validation.
    -
    Obfuscate CPR Numbers
    : Anonymize CPR numbers while maintaining their structure. -
    Parse CPR Numbers
    : Extract details such as birthdate, age, and gender.
 
    OPTIONAL SUBTOPIC SECTION
    USE CASES
    - Testing systems that require CPR numbers without using real data.
    - Validating user input for CPR numbers in applications.
    - Anonymizing CPR numbers for data protection purposes.
 
EXAMPLES
    EXAMPLE 1: GENERATE A RANDOM CPR NUMBER
    Get-CPR
 
    Generates a random CPR number.
 
    EXAMPLE 2: VALIDATE A CPR NUMBER
    Test-CPR -cpr "220197-1915"
 
    Checks if the CPR number `220197-1915` is valid.
 
    EXAMPLE 3: PARSE A CPR NUMBER
    Get-CPRInfo -cpr "220197-1915"
 
    Parses the CPR number `220197-1915` and returns details such as birthdate,
    age, and gender.
 
    EXAMPLE 4: OBFUSCATE A CPR NUMBER
    ConvertTo-ObfuscatedCPR -value "2201971915"
 
    Converts the CPR number `2201971915` into an obfuscated form.
 
NOTE
    This module is intended for use in test environments and should not be used
    with real CPR numbers in production systems.
 
SEE ALSO
    CPR Module README
    Danish CPR Number Format
    PowerShell Gallery