Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to do md5 hash ?

I want to do md5 hash, but can't import hashlib. What can I do?

3 responses

Just curious...why?

I need to call a third party API which needs a parameters signature using md5 hash in my algorithm.

I don't think you can call a third party API. I still don't understand.

In any case, I don't think hashlib is whitelisted. I've never seen it in an algo.

FWIW, zlib is available, and it does have the ability to output an Adler-32 checksum. See https://docs.python.org/2/library/zlib.html .