Steganography in android with native Java library support issue -


i developing multi-platform application use "f5 steganography" hide message inside jpg image captured device's camera. objectives make android application , desktop java application. have found jar file of "f5 steganography" here have implemented library in java desktop application problem coming in android implementation. have imported jar file in android project in embedding , extraction of message, facing issues on android.

  • extract issue

on extract, issue facing imported library using "sun.security.provider.securerandom" android unable find it. here log-cat error:

10-06 22:25:44.324: e/dalvikvm(32150): not find class 'sun.security.provider.securerandom', referenced method crypt.f5random.<init> 

now guessing android not supporting "sun.security.provider.securerandom" library, if so, should do? can import library manually? p.s don't want change in "f5 steganography" library code due fact being used on java platform. here code reference:

public void clk1(view v){     edittext eto=(edittext) findviewbyid(r.id.edittext2);     edittext ett=(edittext) findviewbyid(r.id.edittext3);     extract e=new extract();     string information[] = new string[5];     information[0]="-p";     information[1]="123";     information[2]="-e";     information[3]=ett.gettext().tostring();     information[4]=eto.gettext().tostring();     e.main(information); } 
  • embed issue

on embed, facing issue similar before. error saying not find "james.jpegencoder" class in library, yet present there seen in attached image.

here log-cat trace:

10-06 23:00:39.678: e/dalvikvm(410): not find class 'james.jpegencoder', referenced method main.embed.main 

here code reference:

public void clk0(view v){     edittext eto=(edittext) findviewbyid(r.id.edittext2);     edittext ett=(edittext) findviewbyid(r.id.edittext3);     edittext eti=(edittext) findviewbyid(r.id.edittext1);     embed e=new embed();     string information[] = new string[8];     information[0]="-e";     information[1]=ett.gettext().tostring();     information[2]="-p";     information[3]="123";     information[4]="-q";     information[5]="100";     information[6]=eti.gettext().tostring();     information[7]=eto.gettext().tostring();     e.main(information); } 

what should counter problem? have reached here after solving many issues got stuck here. have searched through internet , not find proper solution remotely relating issue.

if use in android tool referred (https://code.google.com/p/f5-steganography), have import libraries sun or include in project following classes sun.security.provider:

this post bit old might others in futre... tried myself , works charm :)


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -