package scrypt import ( "flag" ) var nFlag = flag.Int( "n", 100, "The number of iterations to execute", ) func MainTest() { flag.Parse() n := *nFlag password := []byte("password") salt := []byte("salt0123456789abcdef0123456789abcdef") input := HashInput{ Password: password, Salt: salt, } for i := 0; i < n; i++ { _, err := Hash(input) if err != nil { panic(err) } } }