The entropy of a password of a fixed length $n$ and $c$ possible characters is calculated by $n*log_2(c)= log_2(c^n)$, see also here: https://ritcyberselfdefense.wordpress.com/2011/09/24/how-to-calculate-password-entropy/
Assuming that I have a kind of "blackbox" that has unknown requirements on a password, especially like: Min occurences of a certain group of characters, different possible characters for different character positions, etc. I can give this blackbox a password that I generated and ask if it is an accepted one or not.
Is it possible to estimate the entropy of the "room" of available passwords by generating an amount of random passwords (lets say 1 million) and see how many have been accepted? What I do know of the room of available passwords is which characters may be used, so I only have to try passwords with these characters, not with the whole UTF-8 table. From this ratio $r$ of tried and accepted password, I can calculate the entropy with a formular like this:
$e_{estimated} = log_2(r*c^n)$
From my tests this formular works quote well for an estimation of the entropy. I am looking for another formular that can tell me how many passwords I have to try to make an assumtion like this:
With a probability of $p$, $|e_{actual} - e_{estimated}| < epsilon$
Is something like this even possible?
not too close to zero? Thanks – mario.schlipf Oct 08 '15 at 14:05