Hash resourceId for signing