I need to calculate the possible combinations for 8 characters password. The password must contain at least one of the following: (lower case letters, upper case letters, digits, punctuations, special characters).
Assume I have 95 ascii characters (lower case letters, upper case letters, digits, punctuations, special characters).
- lower case letters = $26$
- upper case letters = $26$
- digits = $10$
- punctuations & special characters = $33$
The general formula for the possible passwords that I can from from these 95 characters is: $95^8$.
But, accurately, I feel the above formula is incorrect. Please, correct me. The password policy requires at least one of the listed above ascii characters. Therefore, the password possible combinations = $(26)*(26)*(10)*(33)*(95)*(95)*(95)*(95)$
Which calculation is correct?
EDIT: Please, note that I mean 8 characters password and exactly 8. Also, There is no order specified (i.e. it could start with small letter, symbol, etc.). But it should contain at least one of the specified characters set (upper case, lower case, symbol, no., etc.).