class BCrypt::Engine

def self.valid_secret?(secret)

Returns true if +secret+ is a valid bcrypt() secret, false if not.
def self.valid_secret?(secret)
  secret.respond_to?(:to_s)
end