I tried to encrypt a text in python using pyaes
package:
import os
import pyaes
aes = pyaes.AESModeOfOperationCTR(os.urandom(16))
result = aes.encrypt("test")
but I'm getting a error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 0: invalid continuation byte
and also I tried aes.encrypt("test".encode())
What I'm doing wrong here?