Reprompt For Password
This commit is contained in:
@@ -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) }
|
||||
|
Reference in New Issue
Block a user