On Thu, Nov 21, 2013 at 3:53 PM, Paul DeBruicker <pdebruic@gmail.com> wrote:
Mariano Martinez Peck wrote
> Hi Paul, and just to be sure I understand...none of them could work as a
> two-way encryption, right?
> The only one is your Pharo's version of Blowfish but that only works with
> 8
> chars long. Is it like this? Or is there any other two-way encryption?
>
> Thanks!
>
> --
> Mariano
> http://marianopeck.wordpress.com


Yes that's right. �The PasswordHashingFFI stuff is all one way encryption.
Blowfish is two way, and the current implementation only works for 8 byte
chunks. �I stopped working on it when the Smalltalk bcrypt implementation I
wanted proved to be 5000x times slower than the FFI version. Someone needs
to add the CBC part to Blowfish to encrypt longer strings. �I do not know of
another in image two way encryption scheme, but there may be something in
the Cryptography repo. �I'm not sure.



Hi Paul,

Sorry for the cross posting.�

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.�

I am encrypting pieces of 8 characters long. But I wonder if the decryption is available as well in FFI version? I see #ffiCrypt:with: � but nothing to decrypt...

Thanks in advance�


--
Mariano
http://marianopeck.wordpress.com