[sword-devel] using encryption with current osis2mod (r2435
Tim Chase
tchase at maf.org
Wed Aug 26 20:28:10 MST 2009
Hi Jonathan
Using the windows versions of the tool osis2mod I have run tests making four
types of modules(raw, raw + cipher, zipped, zipped + cipher). In both cases
that the -c switch was used ( -c abcd1234efgh5678) while the osis2mod
program output indicated that the cipher key phase was being used, identical
modules were produced without any encryption. Below is my bat file,
redirected program output and sample .conf files. Hope this helps.
Here's my test bat file to create the modules and copy them to SWORD
osis2mod c:\sword\out\kjv\kzemod c:\sword\input\kjv\kjv.xml -z -c
abcd1234efgh5678
osis2mod c:\sword\out\kjv\kzmod c:\sword\input\kjv\kjv.xml -z
osis2mod c:\sword\out\kjv\kemod c:\sword\input\kjv\kjv.xml -c
abcd1234efgh5678
osis2mod c:\sword\out\kjv\krmod c:\sword\input\kjv\kjv.xml
copy c:\sword\out\kjv\kzemod\*.* "C:\Program Files\CrossWire\The SWORD
Project\modules\texts\ztext\kzemod\"
copy c:\sword\out\kjv\kzmod\*.* "C:\Program Files\CrossWire\The SWORD
Project\modules\texts\ztext\kzmod\"
copy c:\sword\out\kjv\kemod\*.* "C:\Program Files\CrossWire\The SWORD
Project\modules\texts\rawtext\kemod\"
copy c:\sword\out\kjv\krmod\*.* "C:\Program Files\CrossWire\The SWORD
Project\modules\texts\rawtext\krmod\"
my four .conf files change the appropriate fields.
None of them have the cypherkey coded yet all of the modules can be read.
[zipcyph]
DataPath=./modules/texts/ztext/kzemod/
ModDrv=zText
Encoding=UTF-8
CompressType=ZIP
....
....
....
[rawcyph]
DataPath=./modules/texts/rawtext/kemod/
ModDrv=rawText
Encoding=UTF-8
....
....
....
[zip]
DataPath=./modules/texts/ztext/kzmod/
ModDrv=zText
Encoding=UTF-8
CompressType=ZIP
....
....
....
[raw]
DataPath=./modules/texts/rawtext/krmod/
ModDrv=rawText
Encoding=UTF-8
....
....
....
I redirected the batch program output to a text file. Here is the text:
C:\SWORD>osis2mod c:\sword\out\kjv\kzemod c:\sword\input\kjv\kjv.xml -z -c
abcd1234efgh5678
C:\SWORD>osis2mod c:\sword\out\kjv\kzmod c:\sword\input\kjv\kjv.xml -z
C:\SWORD>osis2mod c:\sword\out\kjv\kemod c:\sword\input\kjv\kjv.xml -c
abcd1234efgh5678
C:\SWORD>osis2mod c:\sword\out\kjv\krmod c:\sword\input\kjv\kjv.xml
C:\SWORD>copy c:\sword\out\kjv\kzemod\*.* "C:\Program Files\CrossWire\The
SWORD Project\modules\texts\ztext\kzemod\"
c:\sword\out\kjv\kzemod\nt.bzs
c:\sword\out\kjv\kzemod\nt.bzv
c:\sword\out\kjv\kzemod\nt.bzz
c:\sword\out\kjv\kzemod\ot.bzs
c:\sword\out\kjv\kzemod\ot.bzv
c:\sword\out\kjv\kzemod\ot.bzz
6 file(s) copied.
C:\SWORD>copy c:\sword\out\kjv\kzmod\*.* "C:\Program Files\CrossWire\The
SWORD Project\modules\texts\ztext\kzmod\"
c:\sword\out\kjv\kzmod\nt.bzs
c:\sword\out\kjv\kzmod\nt.bzv
c:\sword\out\kjv\kzmod\nt.bzz
c:\sword\out\kjv\kzmod\ot.bzs
c:\sword\out\kjv\kzmod\ot.bzv
c:\sword\out\kjv\kzmod\ot.bzz
6 file(s) copied.
C:\SWORD>copy c:\sword\out\kjv\kemod\*.* "C:\Program Files\CrossWire\The
SWORD Project\modules\texts\rawtext\kemod\"
c:\sword\out\kjv\kemod\nt
c:\sword\out\kjv\kemod\nt.vss
c:\sword\out\kjv\kemod\ot
c:\sword\out\kjv\kemod\ot.vss
4 file(s) copied.
C:\SWORD>copy c:\sword\out\kjv\krmod\*.* "C:\Program Files\CrossWire\The
SWORD Project\modules\texts\rawtext\krmod\"
c:\sword\out\kjv\krmod\nt
c:\sword\out\kjv\krmod\nt.vss
c:\sword\out\kjv\krmod\ot
c:\sword\out\kjv\krmod\ot.vss
4 file(s) copied.
-----Original Message-----
From: Jonathan Marsden [mailto:jmarsden at fastmail.fm]
Sent: Wednesday, August 26, 2009 10:50 PM
To: SWORD Developers' Collaboration Forum
Subject: Re: [sword-devel] using encryption with current osis2mod (r2435
Ben Morgan wrote:
> I didn't have USBINARY defined, so encyphering wasn't doing anything x-(
> Once I do, zipped modules seem to work as expected. Raw ones don't.
Makes sense to me -- all my tests so far were with the -z flag because
all the "real" modules I've seen have been compressed modules.
Incidentally, I think this demonstrates well the need for detailed
"steps to reproduce"! Peter's proposed "no instructions are needed"
approach to testing and bug reproduction simply does not reveal this
kind of important detail.
As a final confirmation, please could the original end user with the
issue (Tim Chase) try creating an enciphered module using the -z flag as
well as -c cipherkey, and report his results ?
Thanks,
Jonathan
_______________________________________________
sword-devel mailing list: sword-devel at crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page
More information about the sword-devel
mailing list