128 bit Java Android encryption, PHP decryption, PHP encryption, Java Android decryption
$30-125 USD
Paiement à la livraison
I am looking for some sample 128 bit encryption code. A function in Java (for Android) will take a String, encrypt it (128 bit), and use an HttpPost to send it to a PHP program. The PHP program will decrypt it, reverse the text, re-encrypt the reversed text and respond to the Android app. The Android app will then decrypt the code.
I estimate that there will be around 50 lines of code total that will need to be written. If you already know how to do this, this will be easy money.
## Deliverables
**Using 128 bit encryption/decryption I need the encryptThis and decryptThis functions created for the source below...**
public void postData(String toPost) {
// Create a new HttpClient and Post Header
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("[url removed, login to view]");
//This is the function I need...
String MyName = ecryptThis(toPost);
try {
// Add your data
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(1);
[url removed, login to view](new BasicNameValuePair("action", MyName));
[url removed, login to view](new UrlEncodedFormEntity(nameValuePairs));
// Execute HTTP Post Request
ResponseHandler<String> responseHandler = new BasicResponseHandler();
String response = [url removed, login to view](httppost, responseHandler);
//This is a function I need...
String decryptedString = decryptThis(response);
[url removed, login to view](this, "response" + decryptedString, Toast.LENGTH_LONG).show();
} catch (ClientProtocolException e) {
[url removed, login to view](this, "CPE response " + [url removed, login to view](), Toast.LENGTH_LONG).show();
// TODO Auto-generated catch block
} catch (IOException e) {
[url removed, login to view](this, "IOE response " + [url removed, login to view](), Toast.LENGTH_LONG).show();
// TODO Auto-generated catch block
}
}//end postData()
**In the php program, I need to the getDecrypt function to decrypt the 128 bit encrypted String from the Android (Java) and getEncrypt function to reencrypt the reversed string so that it can be sent back to the Android Java program...
**
<?php
$decrypted = getDecrypt($_POST["action"]);
$reversedDecrypted = strrev($decrypted);
$encrypted = getEncrypt($reverseDecrypted);
echo $encrypted;
?>
Nº du projet : #3056156