How to take key input in key = b'8_bit_key_from_user'?
from Crypto.Cipher import DES from secrets import token_bytes input_key = input() key = b''+input_key Output:
File "c:\Users\PAssWORD\Music\des.py", line 16, in <module> key = b''+input_key TypeError: can't concat str to bytes
b''is actually valid syntax.