~eau/passwd

206ca02187db539fcb6b44fc96a42d2851b7ace7 — eau 4 years ago 284475e
i do really realy suck in formatting.
1 files changed, 11 insertions(+), 12 deletions(-)

M README.md
M README.md => README.md +11 -12
@@ 93,18 93,17 @@ This requires you to **`<profile>.SetSecret()`** before call the **`Hash()`** or

create a password hashing object with *Argon2* default profile:   

**`p, err := passwd.New(passwd.Argon2idDefault)`**


Hash your password:   

**`hashed, err := p.Hash( []byte("my1337p4ssw0rd!") )`**


done, that's it, now **`hashed`** contain the hashed password:   

**`$2id$GlQX3F.KSYw1JLVv.LKDT.$1$65536$8$32$97DO7W9m/I8CTEQFKDa.VvEBTX1WepVv4qaWlt0OqH6`**     

	p, err := passwd.New(passwd.Argon2idDefault)
	if err != nil {
		// handle error
	}
	hashed, err := p.Hash( []byte("my1337p4ssw0rd!") )
	if err != nil {
		// handle error
	}
	// hashed value: $2id$GlQX3F.KSYw1JLVv.LKDT.$1$65536$8$32$97DO7W9m/I8CTEQFKDa.VvEBTX1WepVv4qaWlt0OqH6

done.


## Password Compare (public parameters / bcrypt) :