further refactor of Crypto digest code - new Format() module