Checksums — Detect data corruption. Part 1/2

Image for post
Image for post
Photo by Markus Spiske on Unsplash

What is a Checksum

Image for post
Image for post

The IP Header Checksum

Image for post
Image for post
125 + 505

The Code

Image for post
Image for post
Boilerplate
Image for post
Image for post
Finding the sum of our text.
Image for post
Image for post
Calculate Decimal Checksum.
Image for post
Image for post
Convert Decimal checksum to binary string.
checksum.cpp

What’s next?

Written by

Self taught Programmer | 3D Environment and Lighting artist | CG Enthusiast

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store