how to use rsa in application i found code but dont know how to implement [closed]
- by Smart Guy
HOW TO I USE THIS RSA http://xtrace.blogspot.com/2012/03/rsa-demo-example.html?showComment=1349091173502#c199333123405145467 TUTOTIAL CODE IN MY LOGIN CODE BELOW I found code but dnt know how to implement
public class LoginScreen extends Activity implements OnClickListener{
public void onCreate(Bundle icicle)
{
super.onCreate(icicle);
setContentView(R.layout.login.xml);
TextView lblMobileNo = (TextView)findViewById(R.id.lblMobileNo);
lblMobileNo.setTextColor(getResources().getColor(R.color.text_color_red));
mobile = (EditText)findViewById(R.id.txtMobileNo);
TextView lblPinNo = (TextView)findViewById(R.id.lblPinNo);
lblPinNo.setTextColor(getResources().getColor(R.color.text_color_red));
pin = (EditText)findViewById(R.id.txtPinNo);
btnLogin = (Button)findViewById(R.id.btnLogin);
btnClear = (Button)findViewById(R.id.btnClear);
btnLogin.setOnClickListener(new OnClickListener() {
public void onClick(View view) {
postLoginData();
}
});
btnClear.setOnClickListener(new OnClickListener()
{
public void onClick(View v)
{
cleartext();
}
});
/*
btnClear.setOnClickListener(new OnClickListener() {
public void onClick(View arg0) {
}
});
*/
}
public void postLoginData()
{
Intent i = new Intent(this.getApplicationContext(),NEWCLASS.class);
Bundle bundle = new Bundle();
bundle.putString("mno", mobile.getText().toString());
bundle.putString("pinno", pin.getText().toString());
i.putExtras(bundle);
startActivity(i); }
}
@Override
public void onClick(View v) {
}
public void cleartext() {
{
pin.setText("") ;
mobile.setText("");
}
}
}