title: Python CRC8 calculation
body: <p>I have some bytes I want to calculate the CRC8 on in python.</p>
  
  <p>I don't have such an experience with that but I know, from the tech specs of my device, that this calculation has to be made with a 0x07 polynom, and a 0x00 initialization.</p>
  
  <p>Let's take an use case. I've received this list of bytes where I know the last one is the CRC:</p>
  
  <pre><code>0x00 0x11 0x23 0x32 0x1C 0xAC 0x23 0x3F 0x25 0x47 0x3D 0xB7 0xE2 0xC5 0x6D 0xB5 0xDF 0xFB 0x48 0xD2 0xB0 0x60 0xD0 0xF5 0xA7 0x10 0x96 0xE0 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xC5 0x8A
  </code></pre>
  
  <p>Now, how can I calculate the CRC my side in order to check if it corresponds to 0x8A?</p>
  
  <p>I've made some research and tried different python modules like <a href="https://pypi.org/project/crcmod/" rel="noreferrer">crcmod</a>, <a href="https://pypi.org/project/crc8/" rel="noreferrer">crc8</a> and <a href="https://pypi.org/project/libscrc/" rel="noreferrer">libscrc</a> but I was not able to make them work: sometimes I've got a <code>MemoryError</code> error on the console!</p>
  
  <p>I've also tried with the following code but it doesn't seem to return me what I think is the correct CRC (0x8a):</p>
  
  <pre><code>import crc8
  hash = crc8.crc8()
  hash.update("0x001123321CAC233F25473DB7E2C56DB5DFFB48D2B060D0F5A71096E00000000000000000C58A".encode('utf-8'))
  print( hash.hexdigest() )
  </code></pre>
  
  <p>What I'm doing wrong?</p>
  
  <p>Is there anyone with some experience with who can help me? Maybe posting a snippet of code I can use to make the calculation?</p>
  
  <p>However, any help will be appreciated!
  Thank you so much for your support...</p>