This is a very basic and probably wrong calculation for some parameters related to my gym locker (I am no mathematician, but a programmer).
I was typing in the password in my locker's keypad, and it had 10keys (0 to 9), but because some didn't respond, I just typed XXYY. This just let me thinking about calculating some properties of this particular system.
We could order the system as 10 flag bits
0000000001 --> flags (flag for 0 is on)
0000000001 ...
0000000100 --> flags (flag for 2 is on)
0000000100 ...
9876543210 --> reference
the number of possible passwords would be $10^4$, and that would be $10^4*10b = 100Kb$ in total.
If someone knew that I typed XXYY then this would be $10^2*10b=1Kb$
- But how do you count this information i.e the fact that it was 4 digits at first, 2 then? Do measurements of information have 'a starting point'?
So for simple systems we could easily calculate the number of possible values and the amount of information needed to break it.
My questions are:
- Is this "reasoning" or beginner idea correct for estimating information? Otherwise, how would you fix it for this simple system?
- Can we calculate the entropy from those numbers?
- How important is to do this calculations in binary?