mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 11:13:26 +00:00
e6ba9981a2
- Cluster now handles offline nodes gracefully without marking endpoints unhealthy - Fixed error 595 (node unreachable) not being treated as node-specific failure - Added parallel health checks with shorter timeouts for better performance - Fixed inconsistent border width on offline node cards (removed conflicting border-l-4) - Switched to ring utility for consistent outline on offline/alert nodes - Improved logout functionality with proper CSRF token handling addresses #312, #315
23 lines
379 B
Go
23 lines
379 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"golang.org/x/crypto/bcrypt"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
if len(os.Args) < 2 {
|
|
fmt.Println("Usage: go run test-hash.go <password>")
|
|
os.Exit(1)
|
|
}
|
|
|
|
password := os.Args[1]
|
|
hash, err := bcrypt.GenerateFromPassword([]byte(password), bcrypt.DefaultCost)
|
|
if err != nil {
|
|
fmt.Printf("Error: %v\n", err)
|
|
os.Exit(1)
|
|
}
|
|
|
|
fmt.Println(string(hash))
|
|
} |