Node:Message Digest Example, Previous:The HashFactory Class, Up:Message Digests



Example

     IMessageDigest md = HashFactory.getInstance("SHA-1");
     md.update(input, 0, input.length);
     
     byte[] digest = md.digest();