Click here to Skip to main content
15,891,902 members

Comments by Joan FUHRMANN (Top 7 by date)

Joan FUHRMANN 1-Feb-23 12:43pm View    
Hello pkfox,

Indeed a large part of my code is made and I edited my question to remove it because I understood that I will not have any help.

I have never come to this forum to ask for a code ready to use. Instead of considering myself a thief I would have preferred a pseudo code for example to be able to understand my programming at best. I’m just starting out and looking for advice.

To prove myself you can see some of my code here: https://www.codeproject.com/Questions/5353088/Divide-each-HEX-into-a-string

Since I divide my BYTES directly at the opening thanks to the kind help provided on this post (thanks to them again!) which gives in modification:
filePath = openFileDialog.FileName;
var fileStream = openFileDialog.OpenFile();
byte[] readBytes = File.ReadAllBytes(filePath);
for (var i = 0; i < readBytes.Length; i++)
{
readBytes[i] /= 2;
}
foreach (byte s in readBytes)
{
Console.WriteLine(s);
}
byte[] data = readBytes;

I have since found help elsewhere and some tips have been given to extract the desired code and thus avoid converting my code to HEX and then again to BYTES to save the new file. This part is being finalized and I will have one step left to complete my program, which is to transform the encoded part.

Learning in progress...!

Have a great day.
Joan FUHRMANN 28-Jan-23 14:38pm View    
Hello OriginalGriff, so first of all thank you for your answer but it seems to me that you have not even looked at my question but only what I had undertaken so far. if you had looked at my question you would have seen that a large part of my code is already done and that I share it with everyone in order to help people who are just starting out like me. In addition, you would also have noticed that I ask the experts explaining where I am currently:
- If my code seems correct and what improvements could be made
- on the rest of my code I explain my goal, I analyzed my file in order to formalize the encoding of the file and above all I ask for leads on the best way to desobfuscate the code. in no case am I asking for a ready-to-use code.
Joan FUHRMANN 27-Jan-23 3:19am View    
Thank you! But I have the same problem as the CPallini solution:'convert' does not contain a definition for 'FromHexString'. Why ? My program is a Windows Form(.net Framework 4.8). You have a idea ?
Joan FUHRMANN 27-Jan-23 2:58am View    
I think this solution is the right one! However I have an error: 'convert' does not contain a definition for 'FromHexString'! Why? I’m sorry I started on C#!
Joan FUHRMANN 26-Jan-23 16:44pm View    
I finally succeeded my program in c#. maybe not the easiest language to start with but it works! thank you Graeme_Grant !!