Picopass: show elite key used from dictionary (#2119)

* show elite key used from dictionary
* remove space so it fits on screen

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Patrick Cunningham 2023-02-08 19:47:16 -08:00 committed by GitHub
parent d7ecc95de4
commit 71871949ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,19 @@ void picopass_scene_read_card_success_on_enter(void* context) {
furi_string_cat_printf(sio_str, "+SIO");
}
if(pacs->key) {
if(pacs->sio) {
furi_string_cat_printf(sio_str, " ");
}
furi_string_cat_printf(sio_str, "Key: ");
uint8_t key[PICOPASS_BLOCK_LEN];
memcpy(key, &pacs->key, PICOPASS_BLOCK_LEN);
for(uint8_t i = 0; i < PICOPASS_BLOCK_LEN; i++) {
furi_string_cat_printf(sio_str, "%02X", key[i]);
}
}
widget_add_button_element(
widget,
GuiButtonTypeLeft,