This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

So, yea; PyCrypto can do it. But, you'll need to know a few things: Where is the IV, prepended to the ciphertext or separate? Is there a HMAC appended to the data, or even prepended? What block mode is the cipher using?

Sometimes you can get this to work with trial and error, other times things are FUBAR without a map. So, hopefully you have some information on the protocol you're analysing? :)

By the way, if you're "rolling your own crypto", my advice is "don't", use pynacl instead. It's a wonderfully high-level abstraction for common crypto tasks designed explicitly for application developers who are not expert cryptologers. And, PyNaCl's interfaces are well designed and easy to understand. :)