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 3927859 commit 64c711aCopy full SHA for 64c711a
src/crypto/bcrypt.cr
@@ -78,7 +78,7 @@ class Crypto::Bcrypt
78
# require "crypto/bcrypt"
79
#
80
# password = Crypto::Bcrypt.new "secret", "CJjskaIgXR32DJYjVyNPdA=="
81
- # password.digest
+ # password.to_s # => "$2a$11$CJjskaIgXR32DJYjVyNPd./ajV3Yj6GiP0IAI6rR.fMnjRgozqqqG"
82
# ```
83
def self.new(password : String, salt : String, cost = DEFAULT_COST)
84
# We make a clone here to we don't keep a mutable reference to the original string
0 commit comments