help me to solve this . how to compare virus signature with file to detect virus in java? whether file content or file signature is compared for virus scanning?
N S K
0
Newbie Poster
Recommended Answers
Jump to Postyou should not attempt to write a virus scanner using Java. the language is not appropriate for the task.
Jump to PostIf you want to do that, you could use Knuth-Morris-Pratt algorithm. Instead of comparing ASCII, do binary comparison. It takes O(n) time for each file (where n is the file size).
All 8 Replies
stultuske
1,116
Posting Maven
Featured Poster
Taywin
312
Posting Virtuoso
N S K
0
Newbie Poster
N S K
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
N S K
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.