Hi Peter, This sounds really cool. I don't have an immediate need for this kind of function, but I've had several projects in the past (using GUID identifiers) which would have benefitted from this kind of an ID. I'd love to see your work and figure out how it would apply.. In the meantime, I'll look up the Verhoeff check digit algorithm a bit more.
Post away! -- Ben Pate On Sun, 06 Mar 2005 00:00:16 -0500, Peter J. Farrell <[EMAIL PROTECTED]> wrote: > I wanted to poll the community about a possible new CFC I might > release. I currently use my Verhoeff Check Digit CFC in a lot of my > applications - mostly to add error checking and redundancy to account > and invoice numbers etc. Secondly, I like encoding other information > into account numbers instead of just using the auto incremented id for a > DB (such as a date, account type, etc.). This allows for a more > "unique" account number or invoice number as well encoding important > information directly into the reference number. > > I've developed somewhat complicated system to encode dates and letters > into account "number" and then compute a Verhoeff check digit for the > entire string. I've based most of my system off the systems that > certain states use on driver licenses. I've spent quite a few hours > working it all out in the past years. > > My question is: Is anybody interested in a CFC that would take > parameters, encode them into some string, compute a check digit for you > and return it for you. Basically a simple way of encoding information > into an "account" number and adding some error checking on top of that. > > For example, I have an account number that take a company name (5 > letters), date of account opening (this only take 4 characters total and > includes month, day and year) and DB id. It converts any alpha to > numerics to allow me to compute a check digit for as well and then > returns the alphanumeric account number back - ready for use. > > I currently have a version that is customized CFCfor my needs - however > it's definitely now ready for community release at all and would require > some work. Anybody interested? > > .pjf > > -- > Peter J. Farrell :: Maestro Publishing > > blog :: http://blog.maestropublishing.com > email :: [EMAIL PROTECTED] > phone :: 651-204-0513 > > I've learned that artificial intelligence is no match for natural stupidity. > -- > > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email to > [email protected] with the words 'unsubscribe cfcdev' as the subject of the > email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting > (www.cfxhosting.com). > > An archive of the CFCDev list is available at > www.mail-archive.com/[email protected] > > -- Benjamin Pate http://smartcms.tigris.org I have 3 GMail invites for anyone who's interested. ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
