Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / March 2007

Tip: Looking for answers? Try searching our database.

Encrypted XML in framework 1.1

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kim H - 12 Mar 2007 12:52 GMT
I have been working with signed XML in .NET framework 1.1 using the
SignedXml class.
Now I also have to handle signed and encrypted XML, but does framework 1.1
support encrypted XML at all?
I can see .NET 2.0 does, but I have my doubts about 1.1.

Thanks,
Kim
Valery Pryamikov - 13 Mar 2007 20:37 GMT
> I have been working with signed XML in .NET framework 1.1 using the
> SignedXml class.
[quoted text clipped - 4 lines]
> Thanks,
> Kim

you can always encrypt it yourself. Remember however that if you are
using sign then encrypt order of operations, then you have to
serialize xml in explicit cannonical form first, calcuate hash of
cannonical xml data, and then encrypt it with CBC mode and random IV
prepended to the text. After that you put result in xmlenc element and
you are done. All could be done in about 100 lines of code.

-Valery.
http://www.harper.no/valery
Valery Pryamikov - 13 Mar 2007 20:38 GMT
> I have been working with signed XML in .NET framework 1.1 using the
> SignedXml class.
[quoted text clipped - 4 lines]
> Thanks,
> Kim

And btw - my advise for you is to use WSE. It gives you signed and
ecrypted xml almost for free.

-Valery.
http://www.harper.no/valery
Dominick Baier - 13 Mar 2007 20:17 GMT
I am assuming the SignedXml class is already coming from WSE - IIRC the encryption
equivalent is called EncryptedData...

-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

>> I have been working with signed XML in .NET framework 1.1 using the
>> SignedXml class.
[quoted text clipped - 9 lines]
> -Valery.
> http://www.harper.no/valery
Valery Pryamikov - 14 Mar 2007 09:40 GMT
On Mar 13, 8:17 pm, Dominick Baier
<dbaier@pleasepleasenospam_leastprivilege.com> wrote:
> I am assuming the SignedXml class is already coming from WSE - IIRC the encryption
> equivalent is called EncryptedData...
[quoted text clipped - 3 lines]
>
> Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

Yes, Dominick is right,
SignedXml class is comming originally from WSE, even so it was made as
part of framework from v2.0.

-Valery.
http://www.harper.no/valery

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.