Extracting the checksum

I wanted a script that can give the checksum of a particular zipped file.
Can somebody help me in writing a shell script in getting the checksum of a particular tar file.

You mean to get only cksum or extract cksum in detail?

if u want to know only check sum there is only two line sufficent in shell script

#!/usr/bin/bash
cksum $1;

we need to improve this script as per platform or etc.