Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bcrypt-ruby/bcrypt-ruby
/ autodetect_cost
Method
autodetect_cost
lib/bcrypt/engine.rb:129–131 ·
view source on GitHub ↗
Autodetects the cost from the salt string.
(salt)
Source
from the content-addressed store, hash-verified
127
128
# Autodetects the cost from the salt string.
129
def self.autodetect_cost(salt)
130
salt[4..5].to_i
131
end
132
end
133
134
end
Callers
1
engine_spec.rb
File · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected