-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bcrypt: add easy bcrypt example #99
base: master
Are you sure you want to change the base?
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
This PR (HEAD: 9b37a44) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/crypto/+/193079 to see it. Tip: You can toggle comments from me using the |
Message from Gobot Gobot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
Message from Akhil Indurti: Patch Set 1: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
Message from Lars Gohr: Patch Set 1: I'll correct the commit message. Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
Message from Akhil Indurti: Patch Set 1:
I misread! Thanks for pointing that out. :) Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
Message from Lars Gohr: Patch Set 1:
Sorry, didn't read correctly. Will also have a look at the second. Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
Message from Akhil Indurti: Patch Set 1:
Confused myself there. Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
This PR (HEAD: 9bf4791) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/crypto/+/193079 to see it. Tip: You can toggle comments from me using the |
bcrypt/bcrypt_test.go
Outdated
|
||
func ExampleBcrypting() { | ||
password := []byte("mypassword") | ||
securedPassword, err := GenerateFromPassword(password, DefaultCost) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you can rename it hashedPassword
, like the first param of CompareHashAndPassword
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's salted and hashed. As saltedHashedPassword
was a little to long for me, I called it secured.
Does that make sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. But securedPassword
comes from nowhere. But it's clear to me.
I try to improve.
But you're right. 👍
Message from Lars Gohr: Patch Set 2: Should be fixed now Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
Message from Akhil Indurti: Patch Set 2: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
Message from Akhil Indurti: Patch Set 2: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
Message from Gobot Gobot: Patch Set 2: TryBots beginning. Status page: https://farmer.golang.org/try?commit=e3cd2cc9 Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
Message from Gobot Gobot: Patch Set 2: TryBot-Result+1 TryBots are happy. Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
So what's missing for this getting merged? |
Message from Ian Lance Taylor: Patch Set 2: Ping Filippo. Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
Message from Lars Gohr: Patch Set 2:
Already did that on the 16th of October via Twitter... Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
Ping |
1 similar comment
Ping |
Message from Dave Cheney: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
This PR (HEAD: 155868f) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/crypto/+/193079 to see it. Tip: You can toggle comments from me using the |
This PR (HEAD: 4cac054) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/crypto/+/193079 to see it. Tip: You can toggle comments from me using the |
Message from Filippo Valsorda: Patch Set 6: (5 comments) Thank you! A few nits. Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
Message from Akhil Indurti: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
Message from Filippo Valsorda: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
This PR (HEAD: bd8e858) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/crypto/+/193079 to see it. Tip: You can toggle comments from me using the |
…CompareHashAndPassword more clear
This PR (HEAD: f6acff4) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/crypto/+/193079 to see it. Tip: You can toggle comments from me using the |
Ping |
Message from Akhil Indurti: Patch Set 9: Code-Review+1 Looks good to me. Even though we're in the freeze, Ping Filippo. Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
Ping |
Message from Ian Lance Taylor: Patch Set 9: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
Message from Go Bot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
Message from Go Bot: Patch Set 2: TryBots beginning. Status page: https://farmer.golang.org/try?commit=e3cd2cc9 Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
Message from Go Bot: Patch Set 2: TryBot-Result+1 TryBots are happy. Please don’t reply on this GitHub thread. Visit golang.org/cl/193079. |
Ping... |
No description provided.