Re: Storing encrypted data in XML document

From: Don Dumitru [MSFT] (dondu_at_online.microsoft.com)
Date: 05/22/03


Date: Wed, 21 May 2003 15:13:14 -0700


Generate the bytes, and then base64 encode them before putting them into the
xml document.

base64 is the standard way to put binary data into xml.

--Don

-- 
This posting is provided "AS IS" with no warranties, and confers no rights.
"Hilton" <nomail@intellilogic.com> wrote in message
news:#3$ELJ#HDHA.2200@TK2MSFTNGP11.phx.gbl...
> I need to store encrypted data in an XML document using both Symmetric and
> Asymmetric algorithms. The encryption routines produce bytes and I'd guess
> the encoding is probably not suitable for inserting into an XML document.
> What is the best way to create encrypted data that results in plain-text
> data and can be used in XML?
>
> Thanks,
>
> Hilton
>
>