Using Java’s Cryptography Extension (JCE), I implemented a Block Chaining (CBC) encryption and decryption program while using DES and AES as the underlying block encryption algorithms.