3des-cbc algorithm


anyone knows how do I generate the 3des-cbc code using input and master key? what is the algorithm used? using C++
Thank you.

Best Solution

I'd like to point out that coding encryption algorithms is very non-trivial and very, very easy to get wrong. If you need this for a commercial project, please use a well known library such as:

If you're just interested in the algorithm itself and/or this is not intended for commercial use, Wikipedia offers a good starting point: http://en.wikipedia.org/wiki/3des.

For the workings of CBC mode (which has nothing to do with 3DES in itself, it's simply a method of employing block ciphers), again, Wikipedia is a good starting point: http://en.wikipedia.org/wiki/Cipher_block_chaining.