class BCrypt::Engine

def self.valid_salt?(salt)

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

def self.valid_salt?: (String salt) -> true

This signature was generated using 1 sample from 1 application.

Returns true if +salt+ is a valid bcrypt() salt, false if not.
def self.valid_salt?(salt)
  !!(salt =~ /\A\$[0-9a-z]{2,}\$[0-9]{2,}\$[A-Za-z0-9\.\/]{22,}\z/)
end