module BCrypt
module BCrypt::Errors
class BCrypt::Engine
class BCrypt::Error
class BCrypt::Errors::InvalidCost
class BCrypt::Errors::InvalidHash
class BCrypt::Errors::InvalidSalt
class BCrypt::Errors::InvalidSecret
class BCrypt::Password
bcrypt
3.1.20
# valid_hash?
def valid_hash?(h) /\A\$[0-9a-z]{2}\$[0-9]{2}\$[A-Za-z0-9\.\/]{53}\z/ === h end