packagepasswordimport"golang.org/x/crypto/bcrypt"// Hash takes a string as input and returns the hash of the// password.funcHash(passwordstring)(string,error){// 10 is the default cost.out,err:=bcrypt.GenerateFromPassword([]byte(password),10)returnstring(out),err}