Playing with RSA
A recent assignment required me to dust off my knowledge of RSA (public-key encryption algorithm). While it is something I do teach every year, I usually do not have to fiddle with the code. So when I was needing a pair of keys (public+private) for some test I needed to look around for some key-generation code.
Once I've got my pair of keys I was surprised with this implementation of RSA encryption in perl:
Once I've got my pair of keys I was surprised with this implementation of RSA encryption in perl:
#!/bin/perl -sp0777i
However, the fastest way to get you working is using OpenSSL's genrsa command.
Comments