veza/veza-backend-api/cmd/tools/hash_gen/main.go

17 lines
244 B
Go
Raw Normal View History

package main
import (
"fmt"
2026-03-05 22:03:43 +00:00
"golang.org/x/crypto/bcrypt"
)
func main() {
password := "password"
hash, err := bcrypt.GenerateFromPassword([]byte(password), bcrypt.DefaultCost)
if err != nil {
panic(err)
}
fmt.Println(string(hash))
}