DEVELOPER'S BLOG

CRC-32 Validation in C/AL09 jun2018

Category: AL Development Tags: c/al, function

How to calculate the CRC-32 in C/AL?

I will not explain the CRC-32 logic. If you are here, probably you know what it is used for and how it is constructed. In first step let's create some logical functions that will allow us to perform binary logical operations, like AND, XOR and NOT.

Binary AND

Binary XOR

Binary NOT

Once we have it, let's create a main method that will return the 32 bit check sum (in my function converted to text).

And ready.

View Konrad Buczkowski's LinkedIn profile Konrad Buczkowski