Get MD5 digested ASCII string
// case of digesting entire file char *md5str = qHashMd5File("/tmp/test.dat, NULL); printf("%s\n", md5str); free(md5str); // case of nbytes is set to 1 bytes length size_t nbytes = 1; char *md5str = qHashMd5File("/tmp/test.dat, &nbytes); printf("%s %d\n", md5str, nbytes); free(md5str); // case of nbytes is set to over size size_t nbytes = 100000; char *md5str = qHashMd5File("/tmp/test.dat, &nbytes); printf("%s %d\n", md5str, nbytes); free(md5str);
|