title: Encrypt a string with C# and decrypt it on iOS and Android
body: <p>I'm developing a WCF Web Service with C# and .NET Framework 4.0. I'm also developing an iOS and Android client to connect with it.</p>
  
  <p>On server side, I have to generate an aleatory password, encrypt it, and send it back to iOS client or to an Android client.</p>
  
  <p>I don't know how can I encrypt a string with .NET Framework. Searching on Internet, I see that there are algorithms to do it: MD5, RSA, etc. (I'm not sure if I have understood how to encrypt a string because I haven't do a string encryption yet).</p>
  
  <p>If I use MD5 to encrypt a password, what do I have to do to decrypt it on iOS and on Android?</p>
  
  <p>What do you recommend me?</p>