suculent / thinx-aes-lib

AES wrapper for ESP8266/ESP32/Arduino/nRF5x
Other
113 stars 39 forks source link

cannot convert 'AESLib::gen_iv' random iv to string #27

Closed chim3y closed 4 years ago

chim3y commented 4 years ago

How can 'AESLib::gen_iv' generated hexadecimal byte array be converted to its decimal equivalent?

If i am not wrong aeslib::gen_iv generates the iv in the following format={0x30,0x30...}. How can it be converted to b'00...'.

Thank you in advance for your support.

suculent commented 4 years ago

This is a Python question. Sorry but should ask that on Stackoverflow instead. This is not a support forum.

    1. 2020 v 13:15, chim3y notifications@github.com:

How can 'AESLib::gen_iv' generated hexadecimal byte array be converted to its decimal equivalent?

If i am not wrong aeslib::gen_iv generates the iv in the following format={0x30,0x30...}. How can it be converted to b'00...'.

Thank you in advance for your support.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.