Nikolay Minaylov 2 лет назад
Родитель
Сommit
c28bbee2d6

+ 12 - 0
.catalog/changelog.md

@@ -0,0 +1,12 @@
+## 1.5
+ - New random filename API
+## 1.4
+ - Optimize crypto speed to fix compatibliity with Signo and OmniKey readers
+## 1.3
+ - Show standard key instead of hex bytes when detected
+## 1.2
+ - Sentinel bit remove
+## 1.1
+ - Key dicts moved to app assets 
+## 1.0
+ - Initial release

+ 1 - 1
application.fam

@@ -10,7 +10,7 @@ App(
     ],
     stack_size=4 * 1024,
     fap_description="App to communicate with NFC tags using the PicoPass(iClass) format",
-    fap_version="1.4",
+    fap_version="1.5",
     fap_icon="125_10px.png",
     fap_category="NFC",
     fap_libs=["mbedtls"],

+ 1 - 0
picopass_device.h

@@ -40,6 +40,7 @@
 
 #define PICOPASS_APP_FOLDER ANY_PATH("picopass")
 #define PICOPASS_APP_EXTENSION ".picopass"
+#define PICOPASS_APP_FILE_PREFIX "Picopass"
 #define PICOPASS_APP_SHADOW_EXTENSION ".pas"
 
 #define PICOPASS_DICT_KEY_BATCH_SIZE 10

+ 1 - 1
scenes/picopass_scene_key_input.c

@@ -1,5 +1,5 @@
 #include "../picopass_i.h"
-#include <lib/toolbox/random_name.h>
+#include <lib/toolbox/name_generator.h>
 #include <gui/modules/validators.h>
 #include <toolbox/path.h>
 

+ 3 - 2
scenes/picopass_scene_save_name.c

@@ -1,5 +1,5 @@
 #include "../picopass_i.h"
-#include <lib/toolbox/random_name.h>
+#include <lib/toolbox/name_generator.h>
 #include <gui/modules/validators.h>
 #include <toolbox/path.h>
 
@@ -16,7 +16,8 @@ void picopass_scene_save_name_on_enter(void* context) {
     TextInput* text_input = picopass->text_input;
     bool dev_name_empty = false;
     if(!strcmp(picopass->dev->dev_name, "")) {
-        set_random_name(picopass->text_store, sizeof(picopass->text_store));
+        name_generator_make_auto(
+            picopass->text_store, sizeof(picopass->text_store), PICOPASS_APP_FILE_PREFIX);
         dev_name_empty = true;
     } else {
         picopass_text_store_set(picopass, picopass->dev->dev_name);