C# CRC Function to Python

Web, Mobile & Software Dev Desktop Software Development Posted 1 year ago

Fixed Price

Delivery by May 9, 2014

$50.00

Budget

Details

This is a string of hex values: 2320f1c712000000000000009d745607000002003930000000000000204e460521149f3b0000000000000000

Turn that string of hex values into a byte array, and use this CRC_16_IBM function on it:
namespace WG3000_COMM.Core
{
  internal class wgCRC
  {
    public static ushort CRC_16_IBM(uint len, byte[] data)
    {
      uint num1 = 0U;
      for (uint index1 = 0U; index1  0U)
            num1 = num1  1 ^ 40961U;
          else
            num1 = 1;
        }
      }
      return (ushort) (num1 & (uint) ushort.MaxValue);
    }
  }
}

The result should be this hex string: 6905

I need you to write me a python script that does that same thing.

Put the word "Soup" in your application.

Skills Required:

Client Activity on this Job

Last Viewed: 1 year ago

Proposals: 14

Hired: 1


About the Client

(4.59) 13 reviews

United States
Arlington 05:40 AM

28 Jobs Posted
58% Hire Rate, 1 Open Job

$911 Total Spent
21 Hires, 0 Active

Member Since Oct 2, 2013