<div><span class="gmail_quote">On 26/08/2009, <b class="gmail_sendername">DM Smith</b> <<a href="mailto:dmsmith@crosswire.org">dmsmith@crosswire.org</a>> wrote:</span></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>It does not work.</div></blockquote>
<div> </div>
<div>We found this out a while ago, didn't we?</div>
<div><br> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>The code that has been there forever, no longer works. I checked out revision 1929 from June 2006 and with minor changes, compiled it against the current SWORD library. It has the same problem.<br><br>That code is:<br>
SWFilter *cipherFilter = 0;<br><br> if (!cipherKey.empty()){<br> fprintf(stderr, "Adding cipher filter with phrase: %s\n", cipherKey.c_str() );<br> cipherFilter = new CipherFilter(cipherKey.c_str());<br>
module->AddRawFilter(cipherFilter);<br> }</div></blockquote>
<div>The rawfilters are run when text is taken out, not put in. So the cipherfilter will never be run.</div>
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>This is the same that is used in mod2zmod and tei2mod. Interestingly, cipherraw works entirely differently.<br> </div></blockquote>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>I don't have a good environment to debug it and would appreciate someone to look at it. The basic idea is that the cipher is used on the raw text of a verse to create a jumbled string of the same length.</div></blockquote>
<div> </div>
<div>If no one else does, I can probably look at this in a few hours... </div>
<p>Then there is the question of why Jonathan has it working... Are you sure cipherraw hasn't been near the module? Unmodified code from SVN?</p>God Bless,<br>Ben<br>-------------------------------------------------------------------------------------------<br>
Multitudes, multitudes,<br> in the valley of decision!<br>For the day of the LORD is near<br> in the valley of decision.<br><br>Giôên 3:14 (ESV)<br>