"...quite astonished at the apparent requirement to checksum a 'window'...calculate a checksum on the whole file..." (Marshall)
#MeToo. Probably this is yet another sick assignment by some sick professor?
For a more serious/practical use of checksums you might be happier using digest from Path::Tiny:
my $object = path($file)->digest($algorithm);. The default algorithm is SHA-256.
Best regards, Karl
«The Crux of the Biscuit is the Apostrophe»
perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help
In reply to Re: Accessing individual bytes of a binary file as numerical values
by karlgoethebier
in thread Accessing individual bytes of a binary file as numerical values
by Chris01234
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |