[sword-devel] MPJ: Sapphire and SWORD

Michael Paul Johnson sword-devel@crosswire.org
Mon, 10 Jul 2000 00:01:41 -0600

At 01:54 PM 7/8/00 +0000, Joachim Ansorg wrote:
>Is there a way to know whether a key to unlock a module was correctly entered?

The "standard" way to do this is to preface the locked module with some constant known plain text. If the key correctly decrypts this, then chances are VERY good that the correct key was entered. If it doesn't, then the correct key was not entered. If this feature wasn't designed in from the start, you can check for known features of the specific text, such as valid printable ASCII characters only, correct tags, etc.


Michael Paul Johnson                   
mpj@eBible.org    http://ebible.org/mpj