xxtea / xxtea-python

XXTEA encryption algorithm library for Python
MIT License
74 stars 25 forks source link

Example given not working #2

Open nizamsp opened 7 years ago

nizamsp commented 7 years ago

Example given in the readme is not working. Am I doing something wrong?

import xxtea text = "Hello World! 你好,中国!" key = "1234567890" encrypt_data = xxtea.encrypt(text, key) decrypt_data = xxtea.decrypt(encrypt_data, key) print(text == decrypt_data);

ValueError: Need a 16-byte key.

andot commented 7 years ago

You can look at this issue #1