[jdev] encrypting AND signing messages

ippi heynumbertwo at yahoo.com
Sun Aug 8 18:31:24 CDT 2004


Hello.
                                                      
                                                      
                
I'm looking for a nice way to be able to both encrypt
and sign a message and yet still maintain
compatibility with clients that implement JEP-0027.
>From my reading of the JEP the only way that I could
expect to maintain compatibility would be if I was to
put a copy of the encrypted data in both the <x
xmlns='jabber:x:encrypted'/> element and in the
<body/> element as follows:     
                                                      
                                                      
           
<message to='recipient at example.com/Home'
        from='sender at example.com/Home'>
    <body>
        ...[encrypted data]...
    </body>
    <x xmlns='jabber:x:encrypted'>
        ...[encrypted data]...
    </x>
    <x xmlns='jabber:x:signed'>
        ...[detached signature]...
    </x>
</message>
                                                      
                                                      
                
Not too friendly to those clients that don't have pgp
support! I searched da web for an elegant solution to
this problem but to no avail. If anyone's got any
thoughts I'd really love to hear them.
                                                      
                                                      
                
Thanks
                                                      
                                                      
                
ippi


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the JDev mailing list