class BCrypt::Password

def split_hash(h)

Experimental RBS support (using type sampling data from the type_fusion project).

def split_hash: (BCrypt::Password h) -> untyped

This signature was generated using 1 sample from 1 application.

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