DCPCrypt2 is an open source library released under the MIT license.
You can find it here:

http://www.cityinthesky.co.uk/cryptography.html