CRC32

get_crc32 Computes the crc32 value of the given string.
get_crc32(string, crc=0)[source]

Computes the crc32 value of the given string.

>>> from cxmanage_api.crc32 import get_crc32
>>> get_crc32(string='Foo Bar Baz')
3901333286
>>> #
>>> # With an optional offset ...
>>> #
>>> get_crc32(string='Foo Bar Baz', crc=1)
688341222
Parameters:
  • string (string) – The string to calculate the crc32 for.
  • crc (integer) – The XOR offset.

Previous topic

Tasks

Next topic

Cx_Exceptions