In mathematics (therefore in programming) there are mathematical operations (+, -, *, /). But all mathematical operations I know of are perfectly reversible, for example, by dividing a number, multiplying it, and so the operation was "reversed."
Attention: Operations like 1 + 1 = 2 are not irreversible, because it is enough to know 2 operators, such as 1 and 2 that it is perfectly possible to discover the other value, solving a simple equation to find the value of x. or 1 + 1 = 2, if one has 2 values it would be the same as having x + 1 = 2. And another factor is that if a person is very interested in reversing an operation as 1 + 1 = 2, having only the value of 2, it would be like having x + y = 2, and (if not counting the negative numbers), the scenarios are limited:x = 1 and y = 1
x = 0 and y = 2
x = 2 and y = 0
Is there any function in programming or math that when you enter a value, it returns another so that it is impossible to revert it to the original number? To make it easier, I'll give an example in c ++:
For this function:
int divide(int num, int opera){
num = (num/opera);
return num;
}
There is this "counter-function":
int multiplica(int num, int opera){
num = (num * opera);
return num;
}
Is there a function that returns a number that is impossible to get the old number?