[Glass] FFI blowfish for encrypting / decrypting [WAS] Re: [Pharo-dev] How to encrypt a password?

Mariano Martinez Peck marianopeck at gmail.com
Mon Feb 17 13:17:26 PST 2014

On Thu, Nov 21, 2013 at 3:53 PM, Paul DeBruicker <pdebruic at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20140217/50f9b258/attachment.html>

More information about the Glass mailing list