Hawkynt

CUSIP

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.

Properties

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

Security

Status: πŸŽ“ Educational Only

No vulnerabilities are recorded for this implementation.

Notes

Documentation

References

Test vectors

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

← All algorithms