Problem integrating it on Android
Closed this issue · 7 comments
miranos commented
Hi
When i try to do this:
import com.myproject.MCrypt;
MCrypt mcrypt = new MCrypt();
String decrypting = new String(mcrypt.decrypt(myencryptedtext));
Java ask me to add exception:
MCrypt mcrypt = new MCrypt();
try {
String decrypting = new String(mcrypt.decrypt(myencryptedtext));
Log.w("decrypting", decrypting );
} catch (Exception e) {
}
But nothing returned in the LOGS !
Can you help me please ?
GMetaxakis commented
try {
String decrypting = new String(mcrypt.decrypt(myencryptedtext));
Log.w("decrypting", decrypting );
} catch (Exception e) {
Log.e("decrypting", e.getMessage());
}
miranos commented
Already did that sir, but no error message nor the decrypted data shown !
GMetaxakis commented
but on your code you don't have anything on catch... are you sure that "Already did that sir, but no error message nor the decrypted data shown !" ?
miranos commented
I added your code there sir ! is what i said:
Log.e("decrypting", e.getMessage());
GMetaxakis commented
add a breakpoint then and check again.
miranos commented
Just missed a dot somewhere, thank you for the help, issue solved.