[Fixed]-Django PyCrypto – Save Encrypted String to Database Bad Unicode Data

1👍

I guess you’re trying to save binary data into CharFields. Either change field types of user.iv and user.secret_value to BinaryField, or encode these values using for example base64 encoder.

Leave a comment