RSA Android-Java Simple Example
Good Morning.
I need a simple RSA example to encrypt my telephone ID, send it using NFC, receive and decrypt it using Java and nfcpy.
At the moment i've already implemented a "clear" NFC communication, meaning that i'm able to send the "clear ID" (without encryption) of my smartphone through NFC and receive it on Java side using nfcpy.
When i receive my ID on Java side, i use these lines of code:
--> String[] callAndArgs = {"/usr/
BufferedReader stdInput = new BufferedReader(new
InputStreamRe
BufferedReader stdError = new BufferedReader(new
InputStreamRe
--> ...
while ((st=stdInput.
{
splitted = st.split("=");
if(
{
//Delete empty spaces from the first part of splitted
if (ABC.equals(
{
//Delete empty spaces from the second part of splitted
ID = splitted[
//Delete quotes of ID
ID = ID.replaceAll("'", "");
XMLParsing parsing = new XMLParsing();
String Codice = parsing.PARSE(ID);
This is the second part, where a line parsing is implemented to find the "effective" ID after the "data" field.
Thank you for the attention
Best regards
- Giovanni Palamà -
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- nfcpy Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Giovanni Palmer for more information if necessary.