Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: sha256_hex checksum problem

by haukex (Archbishop)
on Sep 04, 2019 at 10:24 UTC ( [id://11105570]=note: print w/replies, xml ) Need Help??


in reply to sha256_hex checksum problem

sha256_hex takes the data to be checksummed, not a filename, so what you're seeing is the SHA-256 checksum of the filename.

Try this instead: print Digest::SHA->new("SHA-256")->addfile($filename)->hexdigest;

Replies are listed 'Best First'.
Re^2: sha256_hex checksum problem
by boboman (Initiate) on Sep 04, 2019 at 10:28 UTC
    That works great. Thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11105570]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2024-04-24 15:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found