mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
5bd9e831eb
This allows to remove the dependency to libc.
14 lines
301 B
Go
14 lines
301 B
Go
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) {
|
|
fmt.Println(authentication.HashPassword(args[0], ""))
|
|
}
|