I am sorry. It looks I have been asking wrong questions, because I didn't know how or where to start. And this is basicly all I have got in my directions. I need to encript and sign XML document as defined by XML security standards. XML Signature Syntax, XML-DSIG, http://www.w3.org/2000/09/xmldsig# Digest method, SHA-1, http://www.w3.org/2000/09/xmldsig#sha1 Signature method, RSA-SHA-1, http://www.w3.org/2000/09/xmldsig#rsa-sha1 I thought this would be a lot easier. by TheR -- Posted via http://www.ruby-forum.com/.