2019-10-29 20:54:47 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/clems4ever/authelia/authentication"
|
|
|
|
"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
|
|
|
}
|