Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example given not working #2

Open
nizamsp opened this issue Apr 25, 2017 · 1 comment
Open

Example given not working #2

nizamsp opened this issue Apr 25, 2017 · 1 comment

Comments

@nizamsp
Copy link

nizamsp commented Apr 25, 2017

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
Copy link
Member

andot commented Apr 29, 2017

You can look at this issue #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants