package sha;
import java.security.MessageDigest;
/**
*
* @author deepak
*/
public class Sha {
public static void main(String[] args) throws Exception{
MessageDigest sha = MessageDigest.getInstance("SHA-1");
byte [] i1 = args[0].getBytes("UTF8");
sha.update(i1);
byte[] hash = sha.digest();
System.out.println ("Result: Success");
// Display plain text and digest
System.out.println ("Original plain text was : " + args[0]);
System.out.println ("Digested text is : " + new String (hash));
System.out.println ("Program execution was successful ...");
}
}
i am getting error in:byte [] i1 = args[0].getBytes("UTF8");
line no. 12
plss help me to remove it...