I was asked this question on distributed computing in an interview.
Interviewer:
"Sam executed certain code on the client computer to get its output. The client modifies the code and therefore the code returns a different output.Now Sam wants to know if it is possible to determine if this code has been changed or the return value has been changed. Is it possible?"
"Sam executed certain code on the client computer to get its output. The client modifies the code and therefore the code returns a different output.
Now Sam wants to know if it is possible to determine if this code has been changed or the return value has been changed. Is it possible?"
I thought it was impossible to prevent the client from changing the code from the moment it appeared on his computer. Or I'm wrong? If not, can we determine if the code has been changed or something to be done so that the client can manipulate the code and output?
, , , , - , . , , .
, : , ?: no.
: , . , , , , , - . , , , . , , , ( ) , , .