Tech Tip: SHA-2 Information with Generate Digest
PRODUCT: 4D | VERSION: 16 | PLATFORM: Mac & Win
Published On: November 2, 2017
4Dv16R5 introduces support of SHA-2 with the Generate Digest command.
SHA-1 is depreciated and is succeeded by SHA-2 since more powerful computers can possibly perform a complete collision attack by producing a file that generates the same hash as another and provide the fraudulent one.
SHA-2 contains six (6) hash functions and two of them are available in 4D SHA-256 and SHA-512 which only differ by the bit size. While the size leads to assumptions that SHA-256 is faster, this is actually not always true and at times SHA-512 can usually be faster. The typical case where SHA-512 will be faster is with larger data on a 64 Bit processor if the data is small or if the processor is 32 Bit SHA-256 will be faster.