I not well know this (RSA and other), but maybe this link will usefull for you
http://www.koders.com/csharp/fid657B...68CDC310A.aspx
Idea, look the source of DecryptValue method and implement in loginserver. Also the sorcecode avalible for the mono package