Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
paramiko.ed25519key
#6
That's just a semantics issue, of the library being particular about what you give it. Calling .encode() on the hex string will convert it to a bytes string. They'll have the same content, but it'll be a "bytes" to make the library happy.
>>> import base64
>>> key = 'RLhdtbhVbFXUeqZh6jm0t5ToI6b4IGbac8R2EkP+Ido='
>>> text = base64.b64decode(key).hex()
>>> text
'44b85db5b8556c55d47aa661ea39b4b794e823a6f82066da73c4761243fe21da'
>>> text.encode()
b'44b85db5b8556c55d47aa661ea39b4b794e823a6f82066da73c4761243fe21da'
Reply


Messages In This Thread
paramiko.ed25519key - by cverm - Nov-30-2018, 08:31 PM
RE: paramiko.ed25519key - by nilamo - Nov-30-2018, 09:25 PM
RE: paramiko.ed25519key - by cverm - Dec-03-2018, 01:18 PM
RE: paramiko.ed25519key - by nilamo - Dec-03-2018, 05:11 PM
RE: paramiko.ed25519key - by cverm - Dec-06-2018, 01:04 PM
RE: paramiko.ed25519key - by nilamo - Dec-06-2018, 03:45 PM
RE: paramiko.ed25519key - by cverm - Dec-06-2018, 08:26 PM
RE: paramiko.ed25519key - by nilamo - Dec-06-2018, 08:39 PM
RE: paramiko.ed25519key - by cverm - Dec-07-2018, 11:47 AM
RE: paramiko.ed25519key - by nilamo - Dec-07-2018, 03:59 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020