Use DigestUtils in Codecs

Since we have a dependency `DigestUtils` from apache commons codec, we might as well use its implementations instead of creating our own.