Friday, October 23, 2009

Password secure MD5 in JSP

Password secure as MD5 in JSP



<%@page import="java.security.MessageDigest"%>

<%!
public String inc(String passwd) {
    StringBuffer sb = new StringBuffer();
    try {
        MessageDigest md = MessageDigest.getInstance("MD5");
        md.reset();
        md.update(passwd.getBytes());
        byte[] digest = md.digest();
        String hex;
        for (int i=0;i<digest.length;i++){
            hex =  Integer.toHexString(0xFF & digest[i]);
            if(hex.length() == 1){hex = "0" + hex;}
            sb.append(hex);
        }
    } catch(Exception ee) {
               
    }
    return sb.toString();
}
%>


<%
String passwd = "superadmin",inc_pass="";
inc_pass=inc(passwd);
out.print(inc_pass);
%>

Saturday, October 17, 2009

Extended Find and Replace

Extended Find And Replace Utility

This is Extended Find And Replace Utility. By This You Do Multiple(5 Times) Find And Replace Operations in Director and Sub-directory.
It is Also Create BackUp Of Old Files With Current Date.So You can Use That For Further Use. No Worries, It Will Not Stop When it Find The Hidden and ReadOnly Files It Will Replace Those Too.




















To run this utility you ned to install dot net run-time 4.0 from Microsoft site.
Download this utility here