<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 29 June 2015 at 20:40, Anders Gunnare <span dir="ltr"><<a href="mailto:anders.gunnare@ltu.se" target="_blank">anders.gunnare@ltu.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div link="#0563C1" vlink="#954F72" lang="SV">
<div>
<p class="MsoNormal">Hello Word <span style="font-family:Wingdings">J</span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-US">Which encryption method is used to encrypt/decrypt the password field in the database for the table borrowers ?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I need to create users “by hand” with core insert
</span><span style="font-family:Wingdings" lang="EN-US">J</span><span lang="EN-US"><br>
In my case I have a password (not encrypted) which I would like to store in the table and column for the password.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">But how shall I do that ?!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> </span></p></div></div></blockquote><div><br></div><div>There is no way to decrypt (well no computationally feasible way) we use bcrypt from this module<br><a href="http://search.cpan.org/~zefram/Crypt-Eksblowfish-0.009/lib/Crypt/Eksblowfish/Bcrypt.pm">http://search.cpan.org/~zefram/Crypt-Eksblowfish-0.009/lib/Crypt/Eksblowfish/Bcrypt.pm</a><br><br></div><div>If you look at Koha::AuthUtils you can see the Koha function to encrypt<br><br><a href="http://perldoc.koha-community.org/Koha/AuthUtils.html">http://perldoc.koha-community.org/Koha/AuthUtils.html</a><br><br></div><div>Chris<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div link="#0563C1" vlink="#954F72" lang="SV"><div><p class="MsoNormal"><span lang="EN-US"><u></u></span></p>
<p class="MsoNormal"><span>Regards<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>Anders Gunnare<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>IT-service<br>
Luleå tekniska universitet, 971 87 Luleå<u></u><u></u></span></p>
<p class="MsoNormal"><span>0920 - 49 14 50<u></u><u></u></span></p>
<p class="MsoNormal"><span>(070 306 40 37)<u></u><u></u></span></p>
<p class="MsoNormal"><span><a href="mailto:anders.gunnare@ltu.se" target="_blank">anders.gunnare@ltu.se</a><u></u><u></u></span></p>
<p class="MsoNormal"><span><a href="http://www.ltu.se" target="_blank">www.ltu.se</a><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

<br>_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="http://www.koha-community.org/" rel="noreferrer" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" rel="noreferrer" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" target="_blank">http://bugs.koha-community.org/</a><br></blockquote></div><br></div></div>