class BCrypt::Engine

def self.autodetect_cost(salt)

Autodetects the cost from the salt string.
def self.autodetect_cost(salt)
  salt[4..5].to_i
end