MCPcopy Index your code
hub / github.com/bcrypt-ruby/bcrypt-ruby / cost

Method cost

lib/bcrypt/engine.rb:32–34  ·  view source on GitHub ↗

Returns the cost factor that will be used if one is not specified when creating a password hash. Defaults to DEFAULT_COST if not set.

Source from the content-addressed store, hash-verified

30 # Returns the cost factor that will be used if one is not specified when
31 # creating a password hash. Defaults to DEFAULT_COST if not set.
32 def self.cost
33 @cost || DEFAULT_COST
34 end
35
36 # Set a default cost factor that will be used if one is not specified when
37 # creating a password hash.

Callers 3

generate_saltMethod · 0.95
createMethod · 0.80
password_spec.rbFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected