CUSIP (Committee on Uniform Securities Identification Procedures) check digit calculation. 9-character alphanumeric identifier for North American securities. Uses modified Luhn algorithm with position-based doubling. Standard for stocks, bonds, mutual funds in US and Canada.
| Property | Value |
|---|---|
| Category | Checksums |
| Sub-category | Financial Identifier |
| Security status | π Educational Only |
| Complexity | Intermediate |
| Inventor | American Bankers Association |
| Year | 1968 |
| Origin | πΊπΈ United States |
| Source | algorithms/checksum/cusip-checksum.js |
Status: π Educational Only
No vulnerabilities are recorded for this implementation.
3 vectors ship with this algorithm and run in the test suite. Byte values are hexadecimal.
Vector 1 β Apple Inc. (037833100)
| Field | Value |
|---|---|
input |
3033373833333130 |
expected |
00 |
Vector 2 β Cisco Systems (17275R102)
| Field | Value |
|---|---|
input |
3137323735523130 |
expected |
02 |
Vector 3 β Google Inc. (38259P508)
| Field | Value |
|---|---|
input |
3338323539503530 |
expected |
08 |