-
-
Save niedbalski/3a0c04a8c4f4bedcee9ab61e0c147f1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"github.com/juju/utils" | |
) | |
const MIN_LEN = 30 | |
func main() { | |
if (len(os.Args) < 2 || len(os.Args[1]) < MIN_LEN) { | |
fmt.Printf("Error: you need to specify a password with size >= %d chars\n", MIN_LEN) | |
return | |
} | |
fmt.Println(utils.AgentPasswordHash(os.Args[1])) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment