<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 12, 2020 at 10:32 AM Tobias Klein <<a href="mailto:contact@tklein.info">contact@tklein.info</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I'm adding Sword module unlock support to Ezra Project and I've been <br>
wondering how you would validate a given unlock key?<br>
<br>
Basically the dialog for entering the unlock key is shown when a locked <br>
module is selected for installation. Before going through the effort of <br>
installing a module I would like to make sure that the given unlock key <br>
actually works with the selected module. Is there something in the SWORD <br>
API that supports the validation of the unlock key entered by the user?<br></blockquote><div><br></div><div>The last time this came up, I believe the answer was that you just have to try it and display it to the user and they have to decide if the results are human readable.<br></div><div><br></div><div>It would be possible to include a field in modules with a known-good value, then the API could test if that value matched what was expected when it was decrypted. Unless that functionality already exists, I don't know of any other way you could accomplish this.<br></div><div><br></div><div>--Greg<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Best regards,<br>
Tobias<br>
<br>
<br>
_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" rel="noreferrer" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br>
</blockquote></div></div>