Assuming udecode_base32 should be decode_base32, why are you passing a hex string to it?
Update: Ah, you want to convert the SHA to hex, but that's now what you're doing. Fix:
print "SHA1: " . unpack('H*', decode_base32($urn_decode)) . "\n";
In reply to Re^5: Decoding Base32
by ikegami
in thread Decoding Base32
by Cynric
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |