Say we have door where you have to say a password to pass. If theres someone standing nearby he would hear the password and could also use it. So therefore the doorman gives you a different number everytime you want to enter and you have to calculate the password in your head. E.g. you have to add 12 if the number is even and double it if the number is odd. Are there some good algorithms which are easy to use by most people and save. By save I mean that someone standing nearby would need to hear more than 100 valid combinations to conclude the algorithm.
Edit: I changed the title. I found out that the correct name would be challenge–response authentication.