Reprompt For Password

This commit is contained in:
2024-05-17 07:50:03 -05:00
parent 65d8a457a3
commit c02b8f3dff
2 changed files with 27 additions and 29 deletions

View File

@@ -5,6 +5,7 @@ package util
import (
"io/ioutil"
"os"
)
func ReadFile(path string) (string, error) {
@@ -35,3 +36,4 @@ func WritePWFile(path, pw string) error {
}
return ioutil.WriteFile(path, []byte(pass), 0600)
}
func RemovePWFile(path string) error { return os.Remove(path) }