kodejava-commons/src/main/java/org/kodejava/example/commons/codec/SHAHashDemo.java
private void byteDigest() {
        System.out.println("SHAHashDemo.byteDigest");
        byte[] data = "The quick brown fox jumps over the lazy dog.".getBytes(StandardCharsets.UTF_8);
        String digest = DigestUtils.sha1Hex(data);
        System.out.println("Digest          = " + digest);
        System.out.println("Digest.length() = " + digest.length());
    }
/**
     * Calculates SHA-1 digest from byte array.
     */
Calculates SHA-1 digest from byte array.
Calculates SHA - 1 digest from byte array .
private void byteDigest() {
        System.out.println("SHAHashDemo.byteDigest");
        byte[] data = "The quick brown fox jumps over the lazy dog.".getBytes(StandardCharsets.UTF_8);
        String digest = DigestUtils.sha1Hex(data);
        System.out.println("Digest          = " + digest);
        System.out.println("Digest.length() = " + digest.length());
    }
private void byteDigest ( ) { System . out . println ( "SHAHashDemo.byteDigest" ) ; byte [ ] data = "The quick brown fox jumps over the lazy dog." . getBytes ( StandardCharsets . UTF_8 ) ; String digest = DigestUtils . sha1Hex ( data ) ; System . out . println ( "Digest          = " + digest ) ; System . out . println ( "Digest.length() = " + digest . length ( ) ) ; }
Calculates SHA-1 digest from byte array.
Calculates SHA - 1 digest from byte array .