summaryrefslogtreecommitdiffstats
path: root/tools/hashpw
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-10-05 18:00:06 -0700
committerRose Hogenson <rosehogenson@posteo.net>2025-10-05 18:00:06 -0700
commitd89b325294201d95498ae9d08f102e12ac2f2876 (patch)
treeffe65e33d0d01e811a5323d5e40c47564ccb8f2d /tools/hashpw
parent624985afaaa8b94e4d9685bcdc935d467f9e7060 (diff)
downloadroseh.moe-d89b325294201d95498ae9d08f102e12ac2f2876.tar.zst
Implement a "magic wormhole" file-sharing solution
Diffstat (limited to 'tools/hashpw')
-rw-r--r--tools/hashpw/hashpw.go31
1 files changed, 0 insertions, 31 deletions
diff --git a/tools/hashpw/hashpw.go b/tools/hashpw/hashpw.go
deleted file mode 100644
index 7705b31..0000000
--- a/tools/hashpw/hashpw.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package main
-
-import (
- "fmt"
- "os"
-
- "gitlab.com/rhogenson/roseh.moe/internal/cryptoutil"
- "golang.org/x/term"
-)
-
-func run() error {
- fmt.Print("Enter password:")
- password, err := term.ReadPassword(int(os.Stdin.Fd()))
- fmt.Println()
- if err != nil {
- return err
- }
- hashedPassword, err := cryptoutil.Hash(string(password))
- if err != nil {
- return err
- }
- fmt.Printf("notepad-password=%s\n", hashedPassword)
- return nil
-}
-
-func main() {
- if err := run(); err != nil {
- fmt.Fprintln(os.Stderr, err)
- os.Exit(1)
- }
-}