Porting to bcrypt version 1.0.2