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
|