Main password encrypted in memory

This commit is contained in:
ycc
2026-02-02 18:15:57 +01:00
parent bb56b8dd9c
commit 7cf212fc76
13 changed files with 145 additions and 110 deletions

View File

@@ -6,7 +6,10 @@ import (
func TestConfigSave(t *testing.T) {
c := GetConfig()
c.memoryPassword = "hideme"
err := c.SetMemPass("hideme")
if err != nil {
t.Fatalf("Failed to set password: %v", err)
}
c.IdentityFile = "test.id"
c.Chunksize = 10000000
c.SavePassword = true