I want a function or operation that satisfy below conditions:
with given $x,y$ anyone can compute $z$;
but with given $x$ or $y$ solely, no anyone can compute $z$;
and with given $z$ anyone can compute or derive $x$ and $y$.
Note: $x,y$ and $z$ are variable (integer, float, string or anything).