computeKey - public method, to use outside