Skip to content

A simple implementation for Adler-32 checksum algorithm.

Notifications You must be signed in to change notification settings

litao3rd/Adler-32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Adler-32 checksum

This is a simple implementation for adler32 checksum algorithm.

All the details for this algorithm please visit wikipedia

In this repo, I left two test cases.

One from wikipedia webpage. That the Adler-32 sum of the ASCII string "Wikipedia" is 0x11E60398.

The other test case is a classes.dex file that used in Android APK file.

In android apk file, adler-32 is used in dex file for a simple check. It remove the magic and checksum fields(first 12 bytes of the classes.dex file), then calc its adler-32 checksum for fill the checksum field.

The classes.dex in this repo I have already remove the magic and checksum fields from the original file, so you can just use it for test. Its adler-32 checksum is 0x4A3BFC25

About

A simple implementation for Adler-32 checksum algorithm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages