dlenski / rsa_ct_kip

Provision an RSA SecurID token with RSA's CT-KIP protocol
MIT License
41 stars 8 forks source link

Fixing runtime errors encountered using python3 #1

Closed dedominic-veeder closed 5 years ago

dedominic-veeder commented 5 years ago

I couldn't get this program to work without significant changes. I made it at least successfully respond though I'm not sure it worked as my authcode was consumed and lost the output at the end.

dedominic-veeder commented 5 years ago

I ended up getting Tech support to generate a new auth code and this time I had to base64 encode the encrypted client nonce??? so I mgiht have to change this pr.

anyhow I have the key, token, expiration and mac but I don't know how to use it.

dlenski commented 5 years ago

I couldn't get this program to work without significant changes. I made it at least successfully respond though I'm not sure it worked as my authcode was consumed and lost the output at the end.

Hmmm… what version of Py3 are you using? And what version of the PyCryptoDome libraries? With Python 3.5.2 and PyCryptoDome 3.4.7 under Linux, it worked fine for me.

anyhow I have the key, token, expiration and mac but I don't know how to use it.

You and me both :wink: . That's the problem here… even once we have the unencrypted key/token/expiration/mac, we still don't know how the official software converts all that into the seed for the token. https://github.com/cernekee/stoken/issues/28

dlenski commented 5 years ago

@cemeyer and @dedominic-veeder, could you tell me exactly which versions of Python and PyCryptoDome you're running?

cemeyer commented 5 years ago

@cemeyer and @dedominic-veeder, could you tell me exactly which versions of Python and PyCryptoDome you're running?

Python 3.6.7, PyCryptoDome 3.7.2