Sample code for 30+ languages & platforms
Lua

RSA Examples for Lua