SHA1
SHA1
SHA1
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
try {
MessageDigest md = MessageDigest.getInstance("SHA-1");
return hashtext;
catch (NoSuchAlgorithmException e) {
// Driver code
NoSuchAlgorithmException
String s1 = "GHRIET";
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
try {
MessageDigest md = MessageDigest.getInstance("SHA-1");
return hashtext;
catch (NoSuchAlgorithmException e) {
// Driver code
NoSuchAlgorithmException
String s1 = "GHRIET";