195196197198199200201202203204205206207208
String encrypted = null; MCrypt mcrypt = new MCrypt(); /* Encrypt */ try { encrypted = MCrypt.bytesToHex( mcrypt.encrypt(loginPassword.getText()) ); } catch (Exception e1) { // TODO Auto-generated catch block e1.printStackTrace(); } /* Decrypt */