3

How do I calculate CRC16 in Python?

In Perl I would write something like:

use Digest::CRC "crc16";
$result = crc16($str);

How do I do same thing in Python?

rmflow
  • 4,445
  • 4
  • 27
  • 41

1 Answers1

3

There is a library for calculating CRC16 here http://pypi.python.org/pypi/crc16/0.1.0

aweis
  • 5,350
  • 4
  • 30
  • 46
  • i get this error error: Unable to find vcvarsall.bat when running the setup script.. any ideas? – jorrebor Oct 15 '12 at 15:30
  • try look at this question http://stackoverflow.com/questions/2272786/python-issueunable-to-find-vcvarsall-bat – aweis Oct 15 '12 at 17:05