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

16 lines
243 B
Go
Raw Normal View History

package main
import (
"fmt"
"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))
}