diff options
Diffstat (limited to 'WinKeyRecover/keyManager/CountMissingChars.cs')
| -rw-r--r-- | WinKeyRecover/keyManager/CountMissingChars.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/WinKeyRecover/keyManager/CountMissingChars.cs b/WinKeyRecover/keyManager/CountMissingChars.cs new file mode 100644 index 0000000..b92b357 --- /dev/null +++ b/WinKeyRecover/keyManager/CountMissingChars.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Threading.Tasks; + +namespace WinKeyRecover +{ + internal class CountMissingChars + { + private int missing = 0; + + public int Count(string key) + { + for (int i = 0; i < key.Length; i++) + { + if (key[i] == '*') + { + missing++; + } + } + + return missing; + } + } +} |
