We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34875ff commit f293a0dCopy full SHA for f293a0d
src/crypto/bcrypt.cr
@@ -72,10 +72,12 @@ class Crypto::Bcrypt
72
73
# Creates a new `Crypto::Bcrypt` object from the given *password* with *salt* and *cost*.
74
#
75
+ # *salt* must be a base64 encoded string of 16 bytes (128 bits).
76
+ #
77
# ```
78
# require "crypto/bcrypt"
79
- # password = Crypto::Bcrypt.new "secret", "salt_of_16_chars"
80
+ # password = Crypto::Bcrypt.new "secret", "0102030405060708090a0b0c0d0e0f10"
81
# password.digest
82
83
def self.new(password : String, salt : String, cost = DEFAULT_COST)
0 commit comments