Difference between revisions of "Truxton create media hashset"
Jump to navigation
Jump to search
(Created page with "This will create a hash set file of every unique hash in a piece of media. =Syntax= <source lang="C"> void truxton_create_media_hashset( uint64_t truxton_handle,...") |
|||
| Line 12: | Line 12: | ||
==<code>media_id</code>== | ==<code>media_id</code>== | ||
The string representation of a [https://en.wikipedia.org/wiki/Universally_unique_identifier globally unique identifier] of the media to export the hashes from. | The string representation of a [https://en.wikipedia.org/wiki/Universally_unique_identifier globally unique identifier] of the media to export the hashes from. | ||
| + | This corresponds to the <code>[ID]</code> column of the <code>[Media]</code> table. | ||
==<code>filename</code>== | ==<code>filename</code>== | ||
Revision as of 04:46, 2 June 2021
This will create a hash set file of every unique hash in a piece of media.
Syntax
void truxton_create_media_hashset( uint64_t truxton_handle, char const * media_id, char const * filename );
Parameters
truxton_handle
The handle created by the truxton_create call.
media_id
The string representation of a globally unique identifier of the media to export the hashes from.
This corresponds to the [ID] column of the [Media] table.
filename
The name of the file where the hashes will be written.
Sample
void save_truxton_hash_set( char const * media_id )
{
char output_filename[ MAX_PATH ];
strcpy_s( output_filename, sizeof( output_filename ), "\\\\Server\\Hashsets\\Media_" );
strcat_s( output_filename, sizeof( output_filename ), media_id );
strcat_s( output_filename, sizeof( output_filename ), ".hashset" );
uint64_t truxton = truxton_create();
truxton_create_media_hashset( truxton, media_id, output_filename );
truxton_destroy( truxton );
}