bcrypt-password-hashing

command
v0.0.0-...-a2a1f02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2020 License: MIT Imports: 2 Imported by: 0

README

bcrypt-password-hashing

Store your password hash, not your password. Set your password hash and then check your password using bcrypt.

Documents and reference,

  • The genesis for this example here

PREREQUISITES

go get -u -v golang.org/x/crypto/bcrypt

OVERVIEW

Teh beauty of this, your secret and personal password is never stored on the server.

  • You first set it and it's hashed at the server
  • When you use it, it's checked against that hash

This illustration may help,

IMAGE - bcrypt-password-hashing - IMAGE

RUN

go run bcrypt-password-hashing

Now go into the code and change passwordEntered and note it's invalid.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL