<div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 21, 2013 at 3:53 PM, Paul DeBruicker <span dir="ltr">&lt;<a href="mailto:pdebruic@gmail.com" target="_blank" class="vt-p">pdebruic@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Mariano Martinez Peck wrote<br>
<div class="">&gt; Hi Paul, and just to be sure I understand...none of them could work as a<br>
&gt; two-way encryption, right?<br>
&gt; The only one is your Pharo&#39;s version of Blowfish but that only works with<br>
&gt; 8<br>
&gt; chars long. Is it like this? Or is there any other two-way encryption?<br>
&gt;<br>
&gt; Thanks!<br>
&gt;<br>
</div>&gt; --<br>
&gt; Mariano<br>
&gt; <a href="http://marianopeck.wordpress.com" target="_blank" class="vt-p">http://marianopeck.wordpress.com</a><br>
<br>
<br>
Yes that&#39;s right.  The PasswordHashingFFI stuff is all one way encryption.<br>
Blowfish is two way, and the current implementation only works for 8 byte<br>
chunks.  I stopped working on it when the Smalltalk bcrypt implementation I<br>
wanted proved to be 5000x times slower than the FFI version. Someone needs<br>
to add the CBC part to Blowfish to encrypt longer strings.  I do not know of<br>
another in image two way encryption scheme, but there may be something in<br>
the Cryptography repo.  I&#39;m not sure.<br>
<br><br></blockquote><div><br></div><div>Hi Paul,</div><div><br></div><div>Sorry for the cross posting. </div><div><br></div><div>I was using the Smalltalk version of the Blowfish you did to encrypt and decrypt things. But now I realize it is very very slow for the usage I need. You seem to have faced the same problem. </div>
<div><br></div><div>I am encrypting pieces of 8 characters long. But I wonder if the <b>decryption</b> is available as well in FFI version? I see #ffiCrypt:with:   but nothing to decrypt...</div><div><br></div><div>Thanks in advance </div>
</div><br clear="all"><div><br></div>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank" class="vt-p">http://marianopeck.wordpress.com</a><br>
</div></div>