From 4f01edb9230f58ff84b0dd892c931ec8ac9aad55 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 13 Sep 2022 12:56:08 +0200 Subject: move src out of srv, clean up default.nix and Makefile --- srv/src/cmd/hash-password/main.go | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 srv/src/cmd/hash-password/main.go (limited to 'srv/src/cmd/hash-password/main.go') diff --git a/srv/src/cmd/hash-password/main.go b/srv/src/cmd/hash-password/main.go deleted file mode 100644 index 47ae1e7..0000000 --- a/srv/src/cmd/hash-password/main.go +++ /dev/null @@ -1,23 +0,0 @@ -package main - -import ( - "bufio" - "fmt" - "os" - "strings" - - "github.com/mediocregopher/blog.mediocregopher.com/srv/http" -) - -func main() { - - fmt.Fprint(os.Stderr, "Password: ") - - line, err := bufio.NewReader(os.Stdin).ReadString('\n') - - if err != nil { - panic(err) - } - - fmt.Println(http.NewPasswordHash(strings.TrimSpace(line))) -} -- cgit v1.2.3