BASE . LOG, 'file_id' => $LOG_FILE_ID, // add file date 'print_file_date' => true, // set debug and print flags 'debug_all' => $DEBUG_ALL ?? false, 'echo_all' => $ECHO_ALL ?? false, 'print_all' => $PRINT_ALL ?? false, ]); $basic = new CoreLibs\Basic($log); $hash_class = 'CoreLibs\Create\Hash'; // define a list of from to color sets for conversion test print "TEST CLASS: HASH"; print ""; print '
Class Test Master
'; $to_crc = 'Some text block'; // static print "S::__CRC32B: $to_crc: " . $hash_class::__crc32b($to_crc) . "
"; print "S::__SHA1SHORT(off): $to_crc: " . $hash_class::__sha1short($to_crc) . "
"; print "S::__SHA1SHORT(on): $to_crc: " . $hash_class::__sha1short($to_crc, true) . "
"; print "S::__hash(d): $to_crc: " . $hash_class::__hash($to_crc) . "
"; foreach (['adler32', 'fnv132', 'fnv1a32', 'joaat'] as $__hash_c) { print "S::__hash($__hash_c): $to_crc: " . $hash_class::__hash($to_crc, $__hash_c) . "
"; } // static use print "U-S::__CRC32B: $to_crc: " . Hash::__crc32b($to_crc) . "
"; // DEPRECATED /* print "D/__CRC32B: $to_crc: ".$basic->__crc32b($to_crc)."
"; print "D/__SHA1SHORT(off): $to_crc: ".$basic->__sha1short($to_crc)."
"; print "D/__hash(d): $to_crc: ".$basic->__hash($to_crc)."
"; */ // error message print $log->printErrorMsg(); print ""; // __END__