Open nizamsp opened 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.
You can look at this issue #1
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.