Calculates a hash value for the text filebuffer. mode (1=default; 2=deprecated) selects the CRC32-algorithm.