code: @Override
    public void write(int b) throws IOException {
      if (!writtenHeader) {
        writeHeader();
        writtenHeader = true;
      }
      cipherStream.write(b);
    }
docs: Writes one byte to the encrypted output stream.
  
  @param b
  the byte to write
  @throws IOException
  if an I/O error occurs