class BCrypt::Password

def split_hash(h)

Splits +h+ into version, cost, salt, and hash and returns them in that order.

split_hash(raw_hash) -> version, cost, salt, hash
call-seq:
def split_hash(h)
  _, v, c, mash = h.split('$')
  return v.to_str, c.to_i, h[0, 29].to_str, mash[-31, 31].to_str
end