Cross-Language Encryption: Python/Java
Jon Willeke
j.dot.willeke at verizon.dot.net
Sat May 1 21:58:12 EDT 2004
Daniel Orner wrote:
> I've found implementations of Rijndael/AES for both Java and Python,
> but the behavior is not identical (the strings that are produced are
> different). I tried porting the Python rotormodule.c to Java, but my C
> skills are not quite on the expert level, and I got bogged down trying
> to figure out which C types corresponded to Java types (and its behavior
> when casting and not casting, etc.).
If you're willing to spend the effort to port rotor, it's probably worth
the time to understand why the AES implementations don't agree. It's
most likely a mismatch in the padding scheme or the interpretation of
the key.
More information about the Python-list
mailing list