<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
That should definitely not happen.  The fact it is an XLS file should
also make no difference at all.  Perhaps there is a bug with either
reading or writing the file modulo?<br>
<br>
David, would you be able to provide some guidance?<br>
<br>
Paul<br>
<br>
赵鲁 wrote:
<blockquote cite="mid:200910280916227036696@ceopen.cn" type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <style type="text/css">BODY {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
  </style>
  <meta content="MSHTML 6.00.2900.2802" name="GENERATOR">
  <meta content="MSHTML 6.00.2900.2180" name="GENERATOR">
  <style>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
  </style>
  <div> </div>
  <div><font color="#000000" face="Verdana" size="2">For example , I
decrypt the file of a.xls.aes with java AESCrypt , but the decrypted
file a.xls couldn't opened normally .</font></div>
  <div>I modify the code in the AESCrypt.java</div>
  <div><old code></div>
  <div>
  <div>if (block == 1) {</div>
  <div>len = in.read(); // 4 bits size mod 16.</div>
  <div>debug("4 bits size mod 16: " + len);</div>
  <div>}</div>
  <div>out.write(text, 0, len);</div>
  </div>
  <div><new code></div>
  <div>
  <div>if (block == 1) {</div>
  <div>if (!toFile.toLowerCase().endsWith(".xls")) {</div>
  <div>len = in.read(); </div>
  <div>
  <div>debug("4 bits size mod 16: " + len);</div>
  </div>
  <div>}</div>
  <div>}</div>
  <div>out.write(text, 0, len);</div>
  <div> </div>
  <div>now ,I can open it normally.</div>
  <div> </div>
  </div>
  <div> </div>
  <div><font color="#c0c0c0" face="Verdana" size="2">2009-10-28 </font></div>
  <font color="#000080" face="Verdana" size="2">
  <hr style="width: 100px;" align="left" color="#b5c4df" size="1"></font>
  <div><font color="#c0c0c0" face="Verdana" size="2"><span>赵鲁</span> </font></div>
  <hr color="#b5c4df" size="1">
  <div><font face="Verdana" size="2"><strong>发件人:</strong> Paul E.
Jones </font></div>
  <div><font face="Verdana" size="2"><strong>发送时间:</strong> 2009-10-27 
16:15:37 </font></div>
  <div><font face="Verdana" size="2"><strong>收件人:</strong> aescrypt; 赵鲁
  </font></div>
  <div><font face="Verdana" size="2"><strong>抄送:</strong> </font></div>
  <div><font face="Verdana" size="2"><strong>主题:</strong> [Fwd: java
aes crypt could not support the excel] </font></div>
  <div> </div>
  <div><font face="Verdana" size="2"><br>
  赵鲁,<br>
  <br>
I am forwarding your message to the AES Crypt mailing list to see if
others might be able to help you.  However, it's not entirely clear
what the issue is, so can you clarify it further?<br>
  <br>
Thanks,<br>
Paul<br>
  <br>
-------- Original Message --------
  <table class="moz-email-headers-table" border="0" cellpadding="0"
 cellspacing="0">
    <tbody>
      <tr>
        <th align="right" nowrap="nowrap" valign="baseline">Subject: </th>
        <td>java aes crypt could not support the excel</td>
      </tr>
      <tr>
        <th align="right" nowrap="nowrap" valign="baseline">Date: </th>
        <td>Tue, 27 Oct 2009 10:26:50 +0800</td>
      </tr>
      <tr>
        <th align="right" nowrap="nowrap" valign="baseline">From: </th>
        <td>赵鲁 <a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
 href="mailto:zhaolu@ceopen.cn"><zhaolu@ceopen.cn></a></td>
      </tr>
      <tr>
        <th align="right" nowrap="nowrap" valign="baseline">To: </th>
        <td>support <a moz-do-not-send="true"
 class="moz-txt-link-rfc2396E" href="mailto:support@packetizer.com"><support@packetizer.com></a></td>
      </tr>
    </tbody>
  </table>
  <br>
  <br>
  <style type="text/css">BODY {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
  </style>
  <meta content="MSHTML 6.00.2900.2802" name="GENERATOR">
<!-- 52_302903_e11415f126781bf -->
  <table id="Table_01"
 style="font-family: Verdana,Arial,Helvetica,sans-serif;" border="0"
 cellpadding="0" cellspacing="0" width="99%">
    <tbody>
      <tr>
        <td
 background="imap://pkpj@berlin.arid.us:993/fetch%3EUID%3E.INBOX%3E38243?part=1.3&filename=tl.jpg"
 height="120" valign="top" width="278"><span
 style="background-repeat: no-repeat;"><img id="t_3" alt=""
 src="cid:part1.00060002.01020309@packetizer.com" name="t_01"
 height="120" width="278"></span></td>
        <td
 background="imap://pkpj@berlin.arid.us:993/fetch%3EUID%3E.INBOX%3E38243?part=1.4&filename=t_bg.jpg"
 height="120" valign="top" width="100%"> </td>
        <td
 background="imap://pkpj@berlin.arid.us:993/fetch%3EUID%3E.INBOX%3E38243?part=1.4&filename=t_bg.jpg"
 height="120" valign="top" width="224"> </td>
      </tr>
      <tr>
        <td style="padding: 20px 25px 20px 30px; height: 300px;"
 colspan="3"
 background="imap://pkpj@berlin.arid.us:993/fetch%3EUID%3E.INBOX%3E38243?part=1.5&filename=bg.jpg"
 valign="top">
        <table style="margin-top: 0px; margin-left: 0px;" valign="top"
 width="100%">
          <tbody>
            <tr>
              <td style="color: rgb(83, 21, 0); line-height: 160%;"><font
 face="Verdana" size="2">
              <div style="width: 100%; white-space: normal;">
              <div>Hi£º</div>
              <div>    </div>
              <div>java aes crypt could not support the excel  , please
give me a help ,thanks very much.</div>
              <div> </div>
              <div> </div>
              <div> </div>
              <div>zhaolu</div>
              <div>2009-10-27</div>
              <hr style="width: 122px; height: 2px;" align="left"
 size="2">
              <div><a href="http://www.ceopen.cn" moz-do-not-send="true">http://www.ceopen.cn</a></div>
              <div> </div>
              </div>
              </font></td>
            </tr>
          </tbody>
        </table>
        </td>
      </tr>
      <tr align="right">
        <td align="left"
 background="imap://pkpj@berlin.arid.us:993/fetch%3EUID%3E.INBOX%3E38243?part=1.6&filename=d_bg.jpg"
 valign="top"><img id="t_" alt=""
 src="cid:part1.00060002.01020309@packetizer.com" name="t_01" height="1"
 width="278"></td>
        <td
 background="imap://pkpj@berlin.arid.us:993/fetch%3EUID%3E.INBOX%3E38243?part=1.6&filename=d_bg.jpg"
 width="100%"> </td>
        <td
 background="imap://pkpj@berlin.arid.us:993/fetch%3EUID%3E.INBOX%3E38243?part=1.7&filename=dr.jpg"
 width="224"><img id="t_2" alt=""
 src="cid:part1.00060002.01020309@packetizer.com" name="t_01"
 height="66" width="224"></td>
      </tr>
    </tbody>
  </table>
  </font></div>
</blockquote>
</body>
</html>