Skip to content

Commit

Permalink
Include the Base16 prefix when reporting the hex
Browse files Browse the repository at this point in the history
  • Loading branch information
Coding-Enthusiast committed Oct 27, 2023
1 parent 42c9c18 commit 5199101
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/FinderOuter/ViewModels/MissingEncodingViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private byte[] CheckBase16()
string temp = Text;
if (Text.StartsWith(Base16.Prefix))
{
temp = Text.Replace(Base16.Prefix, "");
temp = Text.Replace(Base16.Prefix, string.Empty);
}

if (temp.Length % 2 != 0)
Expand Down Expand Up @@ -163,7 +163,7 @@ public void Decode(EncodingName name)
if (ba != null)
{
Result.FoundAnyResult = true;
Result.AddMessage($"Decoded data has {ba.Length} bytes.{Environment.NewLine}Data in Base-16: {ba.ToBase16()}");
Result.AddMessage($"Decoded data has {ba.Length} bytes.{Environment.NewLine}Data in Base-16: 0x{ba.ToBase16()}");
}
}
catch (Exception ex)
Expand Down

0 comments on commit 5199101

Please sign in to comment.