News for hackers. Stuff that matters.
Re:Exploring Rails 3.1 - ActiveModel::SecurePassword by createaccount94 on Saturday April 16, 2011 @09:59PM (#2455382)
>> hash = BCrypt::Password.create '123456'

=> "$2a$10$khoJWZR3hVA8Qcm3lW6sp.BQGOFKGo2xHCeH2YfDcQVRltEGCJe0S"

>> [hash.salt, hash.checksum]

=> ["$2a$10$khoJWZR3hVA8Qcm3lW6sp.", "BQGOFKGo2xHCeH2YfDcQVRltEGCJe0S"]

There are no comments on this comment yet.