[Pharo-dev] How to encrypt a password?

Davide Varvello varvello at yahoo.com
Thu Nov 21 03:59:51 EST 2013

Hi Paul,
 I resume this old thread because it's not clear to me which package
download to make BCryptLinuxFFI work

In an other thread you point to:
        location: 'http://smalltalkhub.com/mc/Cryptography/Blowfish/main'
        user: '' 
        password: '' 

but there is no BCryptLinuxFFI there.
Can you help me please?


Paul DeBruicker wrote
> Hi Mariano,
> I've made a FFI library on Squeaksource that works on Linux.
> http://www.squeaksource.com/Cryptography/PasswordHashingFFI-PaulDeBruicker.8.mcz
> You need to install the 32 bit versions of libcrypt and libxcrypt if 
> you're using a 64 bit linux os.
> Using crypt can hash passwords using MD5, DES, SHA256, SHA512.
> Using libxcrypt can hash passwords using bcrypt.
> If its for a new installation use bcrypt or SHA512 to hash the 
> passwords. bcrypt is better because its slower, and allegedly future 
> proof.
> to get a hashed password use
> BCryptLinuxFFI bcrypt:'mypassword'
> to check it against a stored hash use:
> BCryptLinuxFFI check:'mypassword' against: storedHash

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

More information about the Pharo-dev mailing list