Remix.run Logo
▲ pants2 2 hours ago

Can't RSA be implemented in only 7 lines of code? Not sure how that computes with your statement

▲cvwright an hour ago | parent | next [-]

The connection to the parent post is that the 7-line “textbook” version of RSA is the one that’s vulnerable to all kinds of things that aren’t obvious when you sit down to type in those 7 lines.

▲mswphd an hour ago | parent | prev [-]

Not in the slightest. Getting

1. Constant time bigint arithmetic, and

2. The padding scheme (which has had MANY issues over the years)

Done correctly is relatively complicated. But a shitty insecure version of RSA is easy to write.