mirror of
https://github.com/mitchell/selfpass.git
synced 2025-12-13 21:07:22 +00:00
Major refactor of config encryption strategy
This commit is contained in:
parent
e404a7ab31
commit
cde1d118fc
10 changed files with 91 additions and 101 deletions
|
|
@ -4,6 +4,10 @@ import "github.com/spf13/viper"
|
|||
|
||||
type ConfigRepo interface {
|
||||
OpenConfig() (masterpass string, cfg *viper.Viper, err error)
|
||||
DecryptConfig()
|
||||
DecryptConfig() (err error)
|
||||
SetMasterpass(masterpass string)
|
||||
WriteConfig() (err error)
|
||||
}
|
||||
|
||||
const KeyPrivateKey = "private_key"
|
||||
const KeyConnConfig = "connection"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue