kodejava-commons/src/main/java/org/kodejava/example/commons/codec/SHAHashDemo.java
private void stringDigest() {
        System.out.println("SHAHashDemo.stringDigest");
        String data = "This is just a simple data message for SHA digest demo.";
        String digest = DigestUtils.sha1Hex(data);
        System.out.println("Digest          = " + digest);
        System.out.println("Digest.length() = " + digest.length());
    }
/**
     * Calculate SHA-1 digest of a string / text.
     */
Calculate SHA-1 digest of a string / text.
Calculate SHA - 1 digest of a string / text .
private void stringDigest() {
        System.out.println("SHAHashDemo.stringDigest");
        String data = "This is just a simple data message for SHA digest demo.";
        String digest = DigestUtils.sha1Hex(data);
        System.out.println("Digest          = " + digest);
        System.out.println("Digest.length() = " + digest.length());
    }
private void stringDigest ( ) { System . out . println ( "SHAHashDemo.stringDigest" ) ; String data = "This is just a simple data message for SHA digest demo." ; String digest = DigestUtils . sha1Hex ( data ) ; System . out . println ( "Digest          = " + digest ) ; System . out . println ( "Digest.length() = " + digest . length ( ) ) ; }
Calculate SHA-1 digest of a string / text.
Calculate SHA - 1 digest of a string / text .