Click here to Skip to main content
15,916,378 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am using SHA256 HashAlgorithm in windows application but antivirus remove my .exe

How to solve this problem please help me experts  


What I have tried:

I am using SHA256 HashAlgorithm in windows application but antivirus remove my .exe run exe then antivirus detected suspicious program and after closing exe .. then remove exe in pc
Posted
Updated 9-Jan-20 19:54pm
Comments
phil.o 10-Jan-20 4:16am    
Both facts (using SHA256 and being removed by antivirus) are not corelated. It may be tha actions you are trying to execute with your executable which trigger the antivirus response.
Could you tell us what and how your application is doing?
Member 14705980 10-Jan-20 6:17am    
Sir This code use in my application ..

public static string GenerateSHA256String(string inputString)
{
SHA256 sha256 = SHA256Managed.Create();
byte[] bytes = Encoding.UTF8.GetBytes(inputString);
byte[] hash = sha256.ComputeHash(bytes);
return GetStringFromHash(hash);
}
phil.o 10-Jan-20 6:33am    
It is unlikely that this code block is the one responsible for the antivirus-triggering. What makes you think it is?
Member 14705980 10-Jan-20 6:47am    
I am just created new project for sha256 testing .. not any more code .. in class just one class and one form .. i am run my application work then press close btn then antivirus detected
phil.o 10-Jan-20 6:53am    
This cannot be the only code. This is a static method which is only executed when it is called. So, there must be some other code which calls it. The content of the method handling the click of the close-button would be more relevant to get a clue about what is going on.

1 solution

There is nothing we can do.
Your app either is infected, or has been falsely detected by your antivirus. You need to talk to the antivirus manufacturer, and see if they can verify your app as virus free and tweak their software to no longer provide a false positive.

We can't do anything like that for you!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900