Andrew Law's .NET Radio Weblog : Things about .NET and other thoughts
Updated: 12/3/2002; 10:55:18 AM.

 

WebLogs

Subscribe to "Andrew Law's .NET Radio Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

 
 

Tuesday, November 26, 2002

Cryptographic interoperability between managed and Native code.

I spent most of last week working on a way to Encrypt code using the standard CAPI of the SDK and then decrypt using the managed framework (and vice versa). I'll post the code for anyone who wants it.

While all of the .NET documentation states that the CRYPTOGRAPHY namespace is basically just a wrapper around the CAPI, you need to understand that certain CAPI capabilities are not included in .NET (i.e. RC4). Also - certain .NET hashing alorithms are not supported in CAPI.

Don't worry though - if you make even the smallest mistake in your code - you get the full error message:

 'bad data'.

 


3:34:39 PM    

© Copyright 2002 Andrew Law.



Click here to visit the Radio UserLand website.

 


November 2002
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Oct   Dec