Collapse SHA-1 and SHA-256 hashing into a single source file.