Add PasswordSalt to org.

This commit is contained in:
Yang Luo
2021-05-05 23:40:18 +08:00
parent f442f11568
commit 8a4311c85c
10 changed files with 28 additions and 21 deletions

View File

@ -47,5 +47,6 @@ func TestSyncIds(t *testing.T) {
func TestGetSaltedPassword(t *testing.T) {
password := "123456"
fmt.Printf("%s -> %s\n", password, getSaltedPassword(password))
salt := "123"
fmt.Printf("%s -> %s\n", password, getSaltedPassword(password, salt))
}