From 0b997547ed41e3b10d00ece43696825a3daa9cfc Mon Sep 17 00:00:00 2001 From: Kai Jan Kriegel Date: Wed, 8 Feb 2023 21:22:36 +0100 Subject: [PATCH] encode token as hex --- bffhd/authentication/fabfire_bin/server.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bffhd/authentication/fabfire_bin/server.rs b/bffhd/authentication/fabfire_bin/server.rs index e183f2b..48077aa 100644 --- a/bffhd/authentication/fabfire_bin/server.rs +++ b/bffhd/authentication/fabfire_bin/server.rs @@ -361,8 +361,7 @@ impl Authentication for FabFire { Ok(_) => { match apdu_response.body { Some(data) => { - let authid = String::from_utf8(data) - .unwrap() + let authid = hex::encode(data) .trim_matches(char::from(0)) .to_string(); let prov = ThisProvider::::with(&authid);