PDA

View Full Version : Python Encryption or Advanced Math Lib?



jimi_hendrix
April 18th, 2009, 03:58 PM
I am looking for either a lib with some advanced math functions (such as getting a totient) or a good encryption lib (i am flexable, just throw out suggestions for this one)

any suggestions?

evymetal
April 18th, 2009, 05:09 PM
I am looking for either a lib with some advanced math functions (such as getting a totient) or a good encryption lib (i am flexable, just throw out suggestions for this one)

any suggestions?

"advanced math" is very general!

For number theory I've seem many recommendations for the arithmetical library gmpy, though I haven't used it.
http://gmpy.sourceforge.net/


For encryption:

python encryption toolkit
http://www.pycrypto.org/

(python-crypto in repositories)

jimi_hendrix
April 18th, 2009, 05:14 PM
"advanced math" is very general!

python encryption toolkit
http://www.pycrypto.org/

(python-crypto in repositories)

ok, installed that, and i am looking at the latex doc (oddly, it wouldnt compile to pdf, gave an error), and i cant seem to find a way to decrypt...the function provided seems to mention something about a tuple as an arg but that seems to be wrong...

EDIT: I appear to have figured it out, ignore this for now

jimi_hendrix
April 18th, 2009, 07:38 PM
ok, so i can encrypt and decrypt with the same RSA object, but how would i encrypt with one rsa object and decrypt it with another?

jimi_hendrix
April 19th, 2009, 03:11 AM
bump in the night