1. directory
2. generate model
3. MD5: asymmetric
salt: to prevent "brute force cracking" by using rainbow table
import "github.com/anaskhan96/go-password-encoder"
// Using custom options options := &password.Options{16, 100, 30, sha512.New} salt, encodedPwd := password.Encode("generic password", options) newPwd := fmt.Sprintf("$sha512$%s$%s", salt, encodedPwd) pwdInfo := strings.Split(newPwd, "$")// len: 4; the first:"" fmt.Println(pwdInfo[1]) check := password.Verify("generic password", pwdInfo[2], pwdInfo[3], options) fmt.Println(check) // true
- micro-service framework service micro webmicro-service framework service micro micro-service seata_storage_micro_service seata_storage_micro_service illegalstateexception azure microsoft framework service services header soap web application web testing service 题解services azamon web services简介amazon web 接口postman service web