Solved

CRC8 calculation

Posted on 2006-11-13
4
3,551 Views
Last Modified: 2011-10-03
Hi there,

I am trying to implement a CRC8 algorithm in Java. I understand the algorithm, but it would save me a lot of time, if I get some implementation hints.
I want to calculate the CRC8 value of a HEX String that is 15 bytes long and store the CRC value in one byte.
I know that there is a utility called jacksum, but I don't want to use it, because I would have to make my application open source (jacksum is GPL).
If you insert a complete algorithm that gets a string data value and a poly as arguments and returns the string crc value, you'll instantly get the 500 points.

Thanks a lot.


0
Comment
Question by:youngzaphod
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 17929479
0
 
LVL 23

Expert Comment

by:Ajay-Singh
ID: 17929485
checkout this:


        CRC32 crc = new CRC32();
        crc.update(...);
        long hash = crc.getValue()
0
 
LVL 2

Author Comment

by:youngzaphod
ID: 17929507
wow that was fast! Thank you both!
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 17929532
:-)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now