How to convert String to Byte array and Byte array to String
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   govind_raju
Posted On:   Wednesday, March 30, 2005 12:39 AM

Here i use following code ... byte[] password = "1234".getBytes(); String clearText = "Govind"; byte[] password3=null,password4=null; try { Seal enSeal = new Seal(72123,password); password3 = enSeal.encrypt(clearText.getBytes()); String str=new String(password3); byte[] password4=str.getBytes(); } catch(Exception e) {} but here i can not get password3=password4. Pls send me reply Thnaks so much Govind    More>>


Here i use following code ...




byte[] password = "1234".getBytes();


String clearText = "Govind";


byte[] password3=null,password4=null;


try {


Seal enSeal = new Seal(72123,password);


password3 = enSeal.encrypt(clearText.getBytes());


String str=new String(password3);


byte[] password4=str.getBytes();


} catch(Exception e) {}





but here i can not get password3=password4.




Pls send me reply



Thnaks so much





Govind    <<Less
About | Sitemap | Contact