feat: Plik z hasłami musi być szyfrowany. Polecenie szyfrowania
This commit is contained in:
@ -3,7 +3,6 @@ package pass
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
type pgpassrow struct {
|
||||
@ -21,7 +20,7 @@ type PassDb struct {
|
||||
|
||||
func Load(file string, master string) (*PassDb, error) {
|
||||
|
||||
data, err := os.ReadFile(file)
|
||||
data, err := DecryptFile(master, file)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user