From 288200c1a6ca0bfe0afbd4b6bfda1e2e5647d5d2 Mon Sep 17 00:00:00 2001 From: objnull Date: Sun, 15 Sep 2024 17:34:00 -0400 Subject: [PATCH] Attempted to do some stuff with debugging --- project/backend/archive.c | 2 +- project/backend/base.h | 2 +- project/backend/secure.c | 2 -- tools/archive.py | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/project/backend/archive.c b/project/backend/archive.c index e59aff9..f29abe2 100644 --- a/project/backend/archive.c +++ b/project/backend/archive.c @@ -21,7 +21,7 @@ bool archive_import(Manager* manager) { // Skipping to each password if (i % 4 == 0) { // DEBUG - FURI_LOG_D(TAG, "(%i) Adding password.", i); + FURI_LOG_D(TAG, "(%i, %s) Adding password.", i, split[i]); // Allocating memory for a password Password* new_password = pass_init( diff --git a/project/backend/base.h b/project/backend/base.h index 220aaab..d062c49 100644 --- a/project/backend/base.h +++ b/project/backend/base.h @@ -9,7 +9,7 @@ #define F_DATA EXT_PATH("apps_data/fpass/data.bin") #define F_ARCHIVE EXT_PATH("apps_data/fpass/archive.txt") -#define F_DELIMITER '\v' +#define F_DELIMITER '\r' // Functions char** split_string(const char* str, char delimiter, int* count); diff --git a/project/backend/secure.c b/project/backend/secure.c index 8df84a6..a4fb21a 100644 --- a/project/backend/secure.c +++ b/project/backend/secure.c @@ -47,8 +47,6 @@ char* secure_storage_load(SecureStorage* secure_storage, Store_File_Path path, c // Decrypting it xor_encrypt_decrypt(data, secure_storage->key); - FURI_LOG_D(TAG, "Decrypted: %s", data); - // Returning result return data; } diff --git a/tools/archive.py b/tools/archive.py index ecdb3fe..3104f78 100644 --- a/tools/archive.py +++ b/tools/archive.py @@ -10,7 +10,7 @@ import sys import json # Variables -file_delimiter = '\v' +file_delimiter = '\r' all_passwords = "" # Functions