Posts

Showing posts from February, 2013

Getting started with SWiG for interfacing between C# and C++ Visual Studio projects

Image
1. Download and extract the SWiG interface: Windows version available here: http://prdownloads.sourceforge.net/swig/swigwin-2.0.9.zip

Using RSA to encrypt large data files in C#

Introduction A utility in C# to use public/private key encryption of data inside large text files, before sending them over a secure connection such as SSL. As I soon found out when playing around with this technique, RSA as a means of assymetric encryption has a drawback, and that is in the size of the text you are encrypting - anything other than a piddling amount of text resulting in a 'Bad length' type of Exception. This is because asymmetric encryption is designed only for encrypting data smaller than it's key size.