How to efficiently identify a binary file

后端 未结 4 1951
醉梦人生
醉梦人生 2021-02-10 19:36

What\'s the most efficient way to identify a binary file? I would like to extract some kind of signature from a binary file and use it to compare it with others.

The bru

4条回答
  •  逝去的感伤
    2021-02-10 20:05

    Are you taking into account to use header identification. If you can design your files in such way, this would be fast and reliable. Using one byte you can distinguish 255 file types ;)

提交回复
热议问题