Skip to content

Valmarelox/checksum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Checksum only python native module

I tried to find a quick python native implemenation of ip checksum to achieve a better performance - I Didn't find any, so I created my own module.

Calculate IP checksum-16 (Host endianess for compatability with other pure python implementations:

How to use

from checksum import checksum
res = checksum(b'BEST DATA')

The module also supports partial checksums:

from checksum import checksum
res = checksum(b'BEST DATA')
res = checksum(b'ANOTHER BULK OF GREAT DATA', res)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published