python-axolotl icon indicating copy to clipboard operation
python-axolotl copied to clipboard

Error converting string to bytes

Open luisdemarchi opened this issue 6 years ago • 0 comments

Hi,

I am using Python 3.7 and with the command: mediaKeyExpanded = HKDFv3().deriveSecrets(mediaK, "Image Keys", 112)

Displays the following error:

TypeError: string argument without an encoding

The solution is to basically change line 49 of the axolotl/kdf/hkdf.py file: mac.update(bytes(info)) for: mac.update(bytes(info, encoding="utf8"))

luisdemarchi avatar Nov 24 '19 12:11 luisdemarchi