C# CRC Function to Python

Closed - This job posting has been filled.

Job Description

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.