authelia/cmd/authelia-scripts/cmd_hash_password.go

14 lines
308 B
Go
Raw Normal View History

package main
import (
"fmt"
"github.com/authelia/authelia/internal/authentication"
"github.com/spf13/cobra"
)
// HashPassword hash the provided password with crypt sha256 hash function
func HashPassword(cobraCmd *cobra.Command, args []string) {
fmt.Println(authentication.HashPassword(args[0], ""))
}