Digital Signature(not detached)

Hello!Is it possible to create not detached signature? For example, signature of file. non xml!
[109 byte] By [danbaranova] at [2007-10-3 2:55:49]
# 1
look , http://www.w3.org/TR/xmldsig-core/
rafaelcsa at 2007-7-14 20:44:56 > top of Java-index,Security,Cryptography...
# 2
It's xml-signature. but i need sign non xml object...
danbaranova at 2007-7-14 20:44:56 > top of Java-index,Security,Cryptography...
# 3

All digital signatures are detached, by nature. What makes them part of the signed object are technical standards describing the signed object with the included signature (as in PKCS7 or XMLSignature). You can, technically, create a signature on any object - text or binary - and attach the signature to the object in any manner that is meaningful to your application. However, if you want the signed object to be portable, then you must use one of the defined standards so that other applications can understand where your object begins and ends, where the signature begins and ends, etc. without your having to provide detailed schematics of your "proprietary" data structure.

In the long term, even if you believe other applications will never access your signed objects, you are better off using an industry standard for the signed objects since you will enhance your own knowledge on the standards (thus increasing the value of your own skills), while maintaining some semblance of order in this increasingly chaotic IT world.

arshad.noora at 2007-7-14 20:44:57 > top of Java-index,Security,Cryptography...