I'm trying to implement RSA without using any java libraries using the algorithm from wikipedia HERE
So, anyone can clearly see that it is a raw RSA, and can directly be attacked.
The question is how can i include padding to the algorithm because i'm not using Java libraries, so what is the simple algorithm to implement the RSA padding to make it secure against some attacks?
Also, would Padding alone be enough? or there is something else i need to know?
Any help is appreciated. Thank you.