Skip to content

Commit

Permalink
Add minor docs enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
j8r committed Sep 16, 2021
1 parent cc963a8 commit 08af313
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/crypto/bcrypt.cr
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Crypto::Bcrypt
0x64657253, 0x63727944, 0x6f756274,
)

# Hashes the *password* using bcrypt algorithm using salt obtained via `Random::Secure.random_bytes`.
# Hashes the *password* using bcrypt algorithm using salt obtained via `Random::Secure.random_bytes(SALT_SIZE)`.
#
# ```
# require "crypto/bcrypt"
Expand All @@ -61,7 +61,7 @@ class Crypto::Bcrypt
new(passwordb, saltb, cost).to_s
end

# Creates a new `Bcrypt` object from the given *password* with *salt* and *cost*.
# Creates a new `Crypto::Bcrypt` object from the given *password* with *salt* and *cost*.
#
# ```
# require "crypto/bcrypt"
Expand All @@ -80,7 +80,7 @@ class Crypto::Bcrypt
getter salt : Bytes
getter cost : Int32

# Creates a new `Bcrypt` object from the given *password* with *salt* in bytes and *cost*.
# Creates a new `Crypto::Bcrypt` object from the given *password* with *salt* in bytes and *cost*.
#
# ```
# require "crypto/bcrypt"
Expand Down

0 comments on commit 08af313

Please sign in to comment.