Implemented ECB and CBC encryption