Took this from another, larger project that I worked on and wrote something small but modular to get me the MD5, SHA1, and SHA256 values for any file I want...nothing novel (and extremely limited) here but more efficient for me and now I can have all my private functions in one customized perl module. Here are the files: filehash.tar.gz.
The package is EncryptTypes::Hash, thus your driver program called getfilehash.pl must be located in the same directory where your EncryptTypes directory sits. Within your EncryptTypes directory, Hash.pm must be located.
Something like:
...
getfilehash.pl
EncryptTypes/
Hash.pm
...
...
...
The package is EncryptTypes::Hash, thus your driver program called getfilehash.pl must be located in the same directory where your EncryptTypes directory sits. Within your EncryptTypes directory, Hash.pm must be located.
Something like:
...
getfilehash.pl
EncryptTypes/
Hash.pm
...
...
...
