From d482ed88724b9dc84ee5f2b70252d4aab6b837d9 Mon Sep 17 00:00:00 2001 From: Debulois Date: Wed, 19 Oct 2022 12:43:49 +0200 Subject: Initial commit --- WinKeyRecover/keyManager/GetMissingPositons.cs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 WinKeyRecover/keyManager/GetMissingPositons.cs (limited to 'WinKeyRecover/keyManager/GetMissingPositons.cs') 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 missingPosition = new List(); + + public List GetPositions(string key) + { + for (int i = 0; i < key.Length; i++) + { + if (key[i] == '*') + { + missingPosition.Add(i); + } + } + + return missingPosition; + } + } +} -- cgit v1.2.3