Replies: 1 comment 4 replies
-
Hey! I'll add a proper example soon, but for now, this should give you an idea: >>> import findmy
>>>
>>> key = findmy.KeyPair.new()
>>> print(key)
KeyPair(name="None", public_key="VLAlUkbtl5UW0nKFt2gJaifiNMHoVkNvVnaBmA==", type=KeyType.UNKNOWN)
>>>
>>> print(key.private_key_b64) # this is a string!
CDGVABJiyAgFgDO0/ySK8od3k+me5JJPfOA9nQ==
>>>
>>> key_str = key.private_key_b64
>>> new_key = findmy.KeyPair.from_b64(key_str) # import the key
>>>
>>> key == new_key
True You can then use the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there,
greate work, thanks a lot! I was just wondering how to operational generate a key pair, store/export it and then use it to fetch reports. Could you give an example / add one to the example folder? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions