Attempted to do some stuff with debugging
This commit is contained in:
parent
644251c57a
commit
288200c1a6
4 changed files with 3 additions and 5 deletions
|
@ -21,7 +21,7 @@ bool archive_import(Manager* manager) {
|
||||||
// Skipping to each password
|
// Skipping to each password
|
||||||
if (i % 4 == 0) {
|
if (i % 4 == 0) {
|
||||||
// DEBUG
|
// 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
|
// Allocating memory for a password
|
||||||
Password* new_password = pass_init(
|
Password* new_password = pass_init(
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#define F_DATA EXT_PATH("apps_data/fpass/data.bin")
|
#define F_DATA EXT_PATH("apps_data/fpass/data.bin")
|
||||||
#define F_ARCHIVE EXT_PATH("apps_data/fpass/archive.txt")
|
#define F_ARCHIVE EXT_PATH("apps_data/fpass/archive.txt")
|
||||||
|
|
||||||
#define F_DELIMITER '\v'
|
#define F_DELIMITER '\r'
|
||||||
|
|
||||||
// Functions
|
// Functions
|
||||||
char** split_string(const char* str, char delimiter, int* count);
|
char** split_string(const char* str, char delimiter, int* count);
|
||||||
|
|
|
@ -47,8 +47,6 @@ char* secure_storage_load(SecureStorage* secure_storage, Store_File_Path path, c
|
||||||
// Decrypting it
|
// Decrypting it
|
||||||
xor_encrypt_decrypt(data, secure_storage->key);
|
xor_encrypt_decrypt(data, secure_storage->key);
|
||||||
|
|
||||||
FURI_LOG_D(TAG, "Decrypted: %s", data);
|
|
||||||
|
|
||||||
// Returning result
|
// Returning result
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ import sys
|
||||||
import json
|
import json
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
file_delimiter = '\v'
|
file_delimiter = '\r'
|
||||||
all_passwords = ""
|
all_passwords = ""
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
|
|
Loading…
Reference in a new issue