Steps to hash a password with bcrypt

Report a typo

Suppose you want to compute the hash value of the password string variable using the bcrypt package.

Please place the steps below in the correct order to properly use the bcrypt package within your Go project, compute the hash value of a password, and print it.

Take notice that for this task, the package main statement has been omitted. Error handling has been omitted as well.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                b, _ := bcrypt.GenerateFromPassword([]byte(password), bcrypt.DefaultCost)
              
                import "golang.org/x/crypto/bcrypt"
              
                println(string(b))
              
                password := "ShallNotPass"
              
                func main() {
              
                }
              
___

Create a free account to access the full topic