Currently, we depend on Java's serialization which is not a good strategy. It would be much better to do our own and make all the different kinds of Digest use interchangeable formats.