Day 20 : 21 July 2022 : Test Program Update : Message Digest Algorithms
My 100 Daze of Code https://github.com/davidjwalling/100-days-of-code #20 : Test Program Update: Message Digest Algorithms A couple of posts ago we added a test program "testava" to the project. At that time, the test program simply logged startup and completion messages. Here, we add some reusable functions to the test harness and demonstrate them by adding the first code under test, message digest algorithms. A message digest is, usually, a fixed-length binary output of an algorithm applied to a variable-length data input, where the computed output, the message "digest" is highly likely to differ if any bit of the input data changes. Over the years, numerous message digest algorithms have come and gone. Some are preferable for speed and others for applicability to certain problem domains such as cryptology. Here, we'll introduce message digest classes to our Ava library that implement the MD5, SHA-1 and SHA-2 message digest algorithms. MD5 is no longer recomme...