From 6c61d0f2373d710022357d45c7955916c17b9532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Tue, 29 Jun 2021 02:01:15 +0200 Subject: [PATCH] fp_from_ik: change fp repr to lowercase with no colon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows the user to be able to do what they want with the string. They can then insert colons, or split up in groups of chars or.. Signed-off-by: Maxime “pep” Buquet --- slixmpp_omemo/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index 80de0a9..927dcc5 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -82,7 +82,7 @@ def _load_device_id(data_dir: str) -> int: def fp_from_ik(identity_key: bytes) -> str: """Convert identityKey to a string representation (fingerprint)""" - return ":".join("{:02X}".format(octet) for octet in identity_key) + return "".join("{:02x}".format(octet) for octet in identity_key) def _parse_bundle(backend: Backend, bundle: Bundle) -> ExtendedPublicBundle: