mrash / fwknop

Single Packet Authorization > Port Knocking

Home Page:http://www.cipherdyne.org/fwknop/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fko.error: Invalid key length

Strykar opened this issue · comments

The python module doesn't seem updated for a while, does it work with the current release?
I don't know python but it appears that it won't accept a BASE64 value for the key under fko.spa_data_final

~ ./fwk.py
Traceback (most recent call last):
  File ".config/addons/fwk.py", line 13, in <module>
    fko.spa_data_final('e4zJ2X9GONBQOfsWm40kYCcnfnoh7dQIH2LRkTSupHt8=','uWNYuAvYWtfHGQt4XUqrFX2csXDRgv5mUu28EWc9Wgrc9w8M2tjxqm29cHMsjNVh55pYgjF4MY5wE37heH8a6gP==')
  File "/usr/lib/python2.7/site-packages/fko.py", line 636, in spa_data_final
    _fko.spa_data_final(self.ctx, key, hmac_key)
fko.error: Invalid key length

If it won't, how do I set create the Base64 and HMAC-Bas64 keys from a plain text password string?