[Pharo-dev] How to encrypt a password?

Paul DeBruicker pdebruic at gmail.com
Thu Nov 21 13:53:18 EST 2013


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.






--
View this message in context: http://forum.world.st/How-to-encrypt-a-password-tp3933585p4724078.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.




More information about the Pharo-dev mailing list