updated strntol to return unsigned results
now supports the sha family of hash function with padding compliant to RFC 3174