use getHashlibInstance() wrapper to access hashlib object instance