ensured crypto:hash() is used