Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Lydia Hughes   on Dec 22 In Java Category.

  
Question Answered By: Ludo Ricci   on Dec 22

You may try encrypting your pwd by an MD5 method:


import java.security.*;
...
 public  String getMD5(String givenStr) {
String result = null;
try {
byte[] data1 = givenStr.getBytes();
MessageDigest md5 = MessageDigest.getInstance("MD5");
byte[] bytes = md5.digest(data1);
result = new String(md5.digest(data1));
} catch(Exception e){
//do something
}
return result;
}

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on java application and url Or get search suggestion and latest updates.


Tagged: