Convert Rijndael java Encryption code into android code?
<p>I'm in need of Rijindal encryption code in android format.Now i have Rijndeal Encryption code in java but i couldn't use the same set of code for android. please refer the below java code and let me know your suggestion:</p>

<pre><code>public static String Encrypt(String plainText, String passPhrase, int
         saltValue, String hashAlgorithm, int passwordIterations, String
         initVector, int keySize)
         {
         byte[] initVectorBytes = null;
         initVectorBytes = Encoding.ASCII.GetBytes(initVector);

         byte[] saltValueBytes = null;
         saltValueBytes = Encoding.ASCII.GetBytes(saltValue);

         byte[] plainTextBytes = null;
         plainTextBytes = Encoding.UTF8.GetBytes(plainText);
         PasswordDeriveBytes password = null;
         password = new PasswordDeriveBytes(passPhrase, saltValueBytes,
         hashAlgorithm, passwordIterations);

         byte[] keyBytes = null;
         keyBytes = password.GetBytes(keySize / 8.0);
         RijndaelManaged symmetricKey = null;
         symmetricKey = new RijndaelManaged();
         symmetricKey.Mode = Cipher.CBC;
         ICryptoTransform encryptor = null;
         encryptor = symmetricKey.CreateEncryptor(keyBytes, initVectorBytes);
         MemoryStream memoryStream = null;
         memoryStream = new MemoryStream();
         CryptoStream cryptoStream = null;
         cryptoStream = new CryptoStream(memoryStream, encryptor,
         CryptoStreamMode.Write);
         // Start encrypting.
         cryptoStream.Write(plainTextBytes, 0, plainTextBytes.length);

         // Finish encrypting.
         cryptoStream.FlushFinalBlock();

         // Convert our encrypted data from a memory stream into a byte array.
         byte[] cipherTextBytes = null;
         cipherTextBytes = memoryStream.ToArray();

         // Close both streams.
         memoryStream.Close();
         cryptoStream.Close();

         // Convert encrypted data into a base64-encoded string.
         String cipherText = null;
         cipherText = Convert.ToBase64String(cipherTextBytes);

         // Return encrypted string.
         return cipherText;
         }
</code></pre>

<p>Is anyone can convert the above code for android encryption form?</p>
