First a bit of a clarification. You should be looking for AES and Cipher Block Chaining (CBC) instead of "AES-CBC code". CBC treats its block cipher (AES, Blowfish, DES, etc) as primitive. There are plenty of Open Source and open-ish source implem...