in reply to Re^2: checksum of subroutine
in thread checksum of subroutine

"A hacker can replace needed bits in a file, then add other bits so that the overall file checksum stays valid."

True, but it's very, very hard. And would be made exponentially harder -- effectively impossible -- by taking two checksums of the file using different algorithms. For example taking both a SHA-512 and Whirlpool hash of the file, then concatenating them.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^4: checksum of subroutine
by mnooning (Beadle) on Aug 13, 2012 at 16:53 UTC

    Very novel idea. I will definitely be looking into this for the overall package.

    Thanks!