Implemented cipher() method and tested with a simple 128-bit sample.