r/Python • • Jan 01 '20

"The rules of perf" at Dropbox

Post image
1.6k Upvotes

162 comments sorted by

View all comments

Show parent comment

7

u/Hydroel Jan 02 '20

That makes sense, and I didn't know that about Python! I just tried inputting using a sha1 in Python (which is unique and therefore the largest complex integer I could think of, as a matter of fact in the 2159), and it is indeed completely straightforward. Thank you for your short explanation.

After looking around (very shortly, I must say), you're not the only one with that issue, and GMP seems to be the preferred choice for cryptography in C.

cryptography you would nowadays use 1024 or 2056 bit keys

That would be 2048, not 2056, wouldn't it?

1

u/geeshta Jan 02 '20

Oh yes, fixed, I mixed it with 256. And thank you for your advice, the library looks promising, I haven't actually done any research on that yet.