public String encrypt(String raw){
  try {
    MessageDigest localMessageDigest=cloneMessageDigest();
    byte[] digest=localMessageDigest.digest(raw.getBytes("UTF-8"));
    return new String(Hex.encodeHex(digest));
  }
 catch (  UnsupportedEncodingException e) {
    throw new EncodingException("UTF-8 not supported!",e);
  }
}

public String encrypt ( String raw ) { try { MessageDigest localMessageDigest = cloneMessageDigest ( ) ; byte [ ] digest = localMessageDigest . digest ( raw . getBytes ( "UTF-8" ) ) ; return new String ( Hex . encodeHex ( digest ) ) ; } catch ( UnsupportedEncodingException e ) { throw new EncodingException ( "UTF-8 not supported!" , e ) ; } }
encrypts the raw string using the md5 algorithm .
