Dear bilalqureshi.epic@gmail.com,
I will try to answer your question the best I can:
The checksum will be send it after all the package, using the flash magic as a reference, this send 512 bytes for each command to write in RAM (this is implementation of the flash magic, it could be until 900 bytes), this is calculated adding the raw data of all the 512 bytes:
For example, if all the 512 bytes are 0xFF the checksum will be 130560:

Remember that the encoding that is used is the UU-encoded so the packages will have up to 61 bytes, (1 of the size of the package + 32 and the payload encoded) each 4 bytes will represent 3 bytes of raw data. That's why the payload raw data is 45.
I hope this information helps you.
Best Regards,
Alexis Andalon