2019-10-29 20:54:47 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
2019-12-24 02:14:52 +00:00
|
|
|
"github.com/authelia/authelia/internal/authentication"
|
2019-10-29 20:54:47 +00:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
// HashPassword hash the provided password with crypt sha256 hash function
|
|
|
|
func HashPassword(cobraCmd *cobra.Command, args []string) {
|
2019-11-01 18:31:51 +00:00
|
|
|
fmt.Println(authentication.HashPassword(args[0], ""))
|
2019-10-29 20:54:47 +00:00
|
|
|
}
|