Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Can i digitally sign in Images by c#

What I have tried:

My question is how to digitally sign these images? If I sign JPG or Tiff , whether signature will get attached to these files (as it happens in document files like PDF or MS word etc)? If so where it get store in file metadata fields , or remain outside? Can i extract signature data? Please note I wish to sign these images Individually and do not want to get converted into any other format like PDF. Also I donot wish to sign it using email client.
Posted
Updated 9-Apr-20 0:40am
Comments
Suvendu Shekhar Giri 6-Apr-16 6:57am    
Check for "Detached Signature", if it helps.
atulshinde7 6-Apr-16 7:54am    
if possible image sign by digital signature in .net , c#
so give me code
Dave Kreskowiak 6-Apr-16 8:55am    
Nobody is going to write your code for you.

Images were really not designed for the digital signing purposes. As SuvenduShekharGiri suggested one solution would be to create a detached signature and you would place it near the image. However this is not the same as attaching the signature (like it is done in DOCX, PDF, etc. documents).

Nevertheless the question that I have is what is your true purpose for doing this, what exactly do you want to achieve?
Just as an FYI you could use steganography to insert your hidden watermark or copyright content inside an image, with this you would be able to detect if some changes were made on your image.
 
Share this answer
 
What we've done in the past is create a signed XML file that contains the image as a byte[] array that the XML serializer converts to BASE64. It's less efficient but then the whole thing is wrapped together.
 
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