-1

Heres a interesting question for you guys,

is it possible to check a file to see if its signed in c++ and if you wouldnt mind could you write me a function how to do this as it would really help alot, thanks.

Kindest Regards,
Nathaniel Blackburn

3
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by template<>
0

I've never heard of "signed" C or C++ source code files. You can compute a checksum (CRC, MD5, SHA1, etc) of the file, or compiled library and/or executable, and publish that, so if the file(s) are changed, the checksum will not agree. This is a common practice, and I suppose it could be considered a sort of "signature".

0

Sorry i seem to have caused some confusion, i ment a c++ function that checks the compiled source code (exe, dll) for a signature, hope this helps to explain this better.

0

Sorry i seem to have caused some confusion, i ment a c++ function that checks the compiled source code (exe, dll) for a signature, hope this helps to explain this better.

Yes, that makes more sense. No, I'm not aware of that, for Linux anyway. For Windows? Possibly. As I said in my previous post, most folks use some sort of checksum to validate a dll (shared library), executable, or installable package.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.