diff options
Diffstat (limited to 'WinKeyRecover/keyManager/GetMissingPositons.cs')
| -rw-r--r-- | WinKeyRecover/keyManager/GetMissingPositons.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/WinKeyRecover/keyManager/GetMissingPositons.cs b/WinKeyRecover/keyManager/GetMissingPositons.cs new file mode 100644 index 0000000..14bf8e8 --- /dev/null +++ b/WinKeyRecover/keyManager/GetMissingPositons.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace WinKeyRecover +{ + internal class GetMissingPositions + { + private readonly List<int> missingPosition = new List<int>(); + + public List<int> GetPositions(string key) + { + for (int i = 0; i < key.Length; i++) + { + if (key[i] == '*') + { + missingPosition.Add(i); + } + } + + return missingPosition; + } + } +} |
