... or even: http://fox.wikis.com/wc.dll?Wiki~CRC16
Dave -----Original Message----- From: ProFox [mailto:[email protected]] On Behalf Of Wes Wilson Sent: 11 December 2013 13:48 To: [email protected] Subject: Need CRC-16 Visual FoxPro Code VFP9 coding for a standard ANSI CRC-16 hash calculation. CRC = Cyclic Redundancy Check. The algorithm has to: 1) accept a plain text string as input a. in this case, the plain text has a minimum length of 15 characters 2) compute ANSI CRC-16 Hash of the input using the standard CRC-16 Hash with a fixed (unchanging) polynomial a. the polynomial is: x^16 + x^15 + x^2 + 1, where x = 2 which equals (decimal) 98309 also equals (hex) 0x18005 3) return the 4 least significant digits, in decimal Example 1: Plain text = 12356789012345 Polynomial = x^16 + x^15 + x^2 + 1 CRC 16 Hash = 1648 Example 2: Plain text = 123456789012345BCDEFG Polynomial = x^16 + x^15 + x^2 + 1 CRC 16 Hash = 6084 Here is a link to more information: http://learn.harvestmark.com/rs/yottamark/images/voicecode_1_7.pdf Page 8 and page 9 of this link show “Sample Source Code “ written in C# (I believe). Also http://en.wikipedia.org/wiki/Cyclic_redundancy_check --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

