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

Some time there are a difference of encryption between Python code and Java code #17

Open
frantz-las opened this issue Jan 17, 2025 · 1 comment

Comments

@frantz-las
Copy link

Some time there are a difference of encryption between Python code and Java code when the string to encrypt is the same length than maxLen

For example :

alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
key = "2DE79D232DF5585D68CE47882AE256D6"; 
tweak = "CBD09280979564" 
cleardata = "Ceciestuntestdechiffrement123cet" ;

Java result = "0AF5L1WgamSaM8hiiMFhkDUrK4KonhBu"
python result = "0uaTPI9g49f9MMw54OvY8x5rmNcrhydM"

If I remove one character, there the same encryption

@frantz-las frantz-las changed the title Need public variable minLen and maxLen Some time there are a difference of encryption between Python code and Java code Jan 17, 2025
@bschoening
Copy link
Member

bschoening commented Jan 20, 2025

@frantz-las I'll look into this. I verified the Java result is the same with the earlier version, 1.0.4.

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