Committee on Uniform Security Identification Procedures, aka Committee on Uniform Security Identification Procedures, is a historical schema created in 1968.

51Years Old 1,020Users 0Jobs

Example code from Wikipedia:

algorithm Cusip-Check-Digit(cusip) is
   Input: an 8-character CUSIP

   sum := 0
   for 1 ≤ i ≤ 8 do
      c := the ith character of cusip
      if c is a digit then
         v := numeric value of the digit c
      else if c is a letter then
         p := ordinal position of c in the alphabet (A=1, B=2...)
         v := p + 9
      else if c = "*" then
         v := 36
      else if c = "@" then
         v := 37
      else if c = "#" then
         v := 38
      end if
      if i is even then
         v := v × 2
      end if

      sum := sum + int ( v div 10 ) + v mod 10
   repeat

   return (10 - (sum mod 10)) mod 10
end function
Edit

Last updated February 11th, 2019