generate a signature for an object