Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/aerospike/command/login_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,10 @@ def authenticate_via_token(conn, cluster)

SALT = '$2a$10$7EqJtq98hPqEX7fNZaFWoO'
def self.hash_password(password)
# Hashing the password with the cost of 10, with a static salt
return BCrypt::Engine.hash_secret(password, SALT, :cost => 10)
# Hashing the password with a static salt. The cost (10) is already
# encoded in SALT, so the third argument to hash_secret is redundant
# and has been removed (bcrypt >= 3.1.19 deprecates passing it).
return BCrypt::Engine.hash_secret(password, SALT)
end
end
end
Expand Down