drop dead memcspn and strip_newline
simplify md5/sha256 summing code