code: private byte[] encrypt(final byte[] bytes) throws IOException {
          try {
              final byte[] vector = new byte[CcAes.BLOCK];
              this.random.nextBytes(vector);
              final byte[] message = this.cipher(
                  Cipher.ENCRYPT_MODE,
                  new IvParameterSpec(vector)
              ).doFinal(bytes);
              final byte[] res = new byte[vector.length + message.length];
              System.arraycopy(vector, 0, res, 0, vector.length);
              System.arraycopy(
                  message,
                  0,
                  res,
                  vector.length,
                  message.length
              );
              return res;
          } catch (final BadPaddingException | IllegalBlockSizeException ex) {
              throw new IOException(ex);
          }
      }
docs: Encrypt the given bytes using AES.
  
  @param bytes Bytes to encrypt
  @return Encrypted byte using AES algorithm
  @throws IOException for all unexpected exceptions