Add encrypt and decrypt function

This commit is contained in:
Archer Fox
2025-03-19 23:37:15 +03:00
parent e7b8eb5601
commit 7536f12aa7
3 changed files with 41 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ func main() {
if err != nil {
output.PrintError("Не удалось найти файл .env")
}
vault := account.NewVault(files.NewJsonDb("data.json"), *encrypter.NewEncrypter())
vault := account.NewVault(files.NewJsonDb("data.vault"), *encrypter.NewEncrypter())
counter := menuCounter()
Menu:
for {