Digest generator.