/** * AltGit - altgit * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Paolo Lulli * @copyright Paolo Lulli 2026 */ package webauth import ( "fmt" "testing" ) func TestCheck(t *testing.T) { salt := "1234567890123456" password := "paolobello" k := GenerateKeyWithSalt(salt, password) if CheckPassword(password, k) { fmt.Printf("The password matches the key: %s\n", k) } } func TestWithRandomSalt(t *testing.T) { password := "paolobello" k := GenerateKey(password) if CheckPassword(password, k) { fmt.Printf("The password matches the key: %s\n", k) } }