Remix.run Logo
gmiller123456 5 hours ago

One of the bigger hurdles in implementing RSA is having an algorithm which can multiply the large numbers in real time. If you try a niave multiplication algorithm, you might find you'll never get an answer. A lot of hardware now comes with special instructions which implement efficient algorithms for doing this.

MattPalmer1086 5 hours ago | parent [-]

Sure, you can't use built in multiplication, but it isn't a very big hurdle. Just use repeated squares, it's fairly trivial to implement. I've worked on software that did this on very low power mobile payment devices.

SkiFire13 5 hours ago | parent [-]

Repeated squares is a way to implement exponentiation, not multiplication.

MattPalmer1086 4 hours ago | parent [-]

Oops, yes, I meant exponentiation. Which you need (mod n) in RSA.