@@ -0,0 +1,770 @@
+_CRC64POLY = 0x142f0e1eba9ea3693%0A%0Aclass CRC64(object):%0A    def __init__(self, arg=None):%0A        self.crc64 = 0%0A        if arg:%0A            self.update(arg)%0A%0A    def update(self, arg):%0A        for c in bytes(arg):%0A            x = ord(c)%0A            for bit in range(8):%0A                if (self.crc64 & 0x80000000000000000):%0A                    if 1 & (x%3E%3Ebit):%0A                        self.crc64 = ((self.crc64 %3C%3C 1) %5E _CRC64POLY) %25 (1%3C%3C64)%0A                    else:%0A                        self.crc64 = (self.crc64 %3C%3C 1) %25 (1%3C%3C64)%0A                else:%0A                    if not (~1) & (x%3E%3Ebit):%0A                        self.crc64 = ((self.crc64 %3C%3C 1) %5E _CRC64POLY) %25 (1%3C%3C64)%0A                    else:%0A                        self.crc64 = (self.crc64 %3C%3C 1) %25 (1%3C%3C64)%0A

Add CRC64