diff options
Diffstat (limited to 'WinKeyRecover/KeyChecker/GetString.cs')
| -rw-r--r-- | WinKeyRecover/KeyChecker/GetString.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/WinKeyRecover/KeyChecker/GetString.cs b/WinKeyRecover/KeyChecker/GetString.cs new file mode 100644 index 0000000..bad8722 --- /dev/null +++ b/WinKeyRecover/KeyChecker/GetString.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace WinKeyRecover +{ + internal class GetString + { + public string Get(byte[] bytes, int index) + { + int num = index; + + while (bytes[num] != 0 || bytes[num + 1] != 0) + { + num++; + } + + return Encoding.ASCII.GetString(bytes, index, num - index).Replace("\0", ""); + } + } +} |
