June 2017
Intermediate to advanced
400 pages
10h 32m
English
These steps cover writing and running your application:
package crypto import ( "net/http" "golang.org/x/crypto/bcrypt" ) // GuessHandler checks if ?message=password func GuessHandler(w http.ResponseWriter, r *http.Request) { r.ParseForm() msg := r.FormValue("message") // "password" real := []byte("$2a$10$2ovnPWuIjMx2S0HvCxP/mutzdsGhyt8rq/ JqnJg/6OyC3B0APMGlK") if err := bcrypt.CompareHashAndPassword(real, ...Read now
Unlock full access