libwget-hash(3)
π libwget-hash(3) π
okay bestie, listen up β this is the libwget-hash page from the Library Functions Manual, and it's literally your whole cheat sheet for hash convenience functions. hashing is just β¨vibesβ¨ but with math, and this page is the group chat where all the hash girlies hang out. no cap.
πΈ NAME πΈ
libwget-hash β Hash convenience functions
like. that's it. that's the name. it does hashes, conveniently. slay.
π¦ SYNOPSIS π¦
π Files
hashfile.cβ Hashing functions. that's the file, bestie, that's where the magic lives π
π Typedefs
typedef struct wget_hash_hd_st wget_hash_hdβ Type for hash / digest routines. this is the little handle you hold onto when you're doing hash stuff. main character energy fr.
π Enumerations
enum wget_digest_algorithm { WGET_DIGTYPE_UNKNOWN = 0, WGET_DIGTYPE_MD5, WGET_DIGTYPE_SHA1, WGET_DIGTYPE_RMD160, WGET_DIGTYPE_MD2, WGET_DIGTYPE_SHA256, WGET_DIGTYPE_SHA384, WGET_DIGTYPE_SHA512, WGET_DIGTYPE_SHA224, WGET_DIGTYPE_MAX }β Enumeration of different hash digest algorithms. a whole menu of algorithms, pick your fave, they're all iconic in their own way.
π Functions
void wget_hash_printf_hex (wget_digest_algorithm algorithm, char *out,
size_t outsize, const char *fmt,...)
one function. one function that does SO much. we love her.
π Detailed Description π
Provides Hash helper functions
that's the whole thing. it provides hash helper functions. short, sweet, does not overexplain, respects your time. periodt. π
π Enumeration Type Documentation π
β¨ enum wget_digest_algorithm β¨
Enumeration of different hash digest algorithms. here come the girls, one by one:
Enumerator
WGET_DIGTYPE_UNKNOWNβ Indicates 'Unknown hash algorithm', returned bywget_hash_get_algorithm(). it's the "idk her" of the enum, no shade.WGET_DIGTYPE_MD5β Type 'MD5' digest. the classic, the OG, still showing up to the party.WGET_DIGTYPE_SHA1β Type SHA1 digest. she's been around a while, she knows everybody.WGET_DIGTYPE_RMD160β Type RMD160 digest. the underrated one. give her a chance π₯ΊWGET_DIGTYPE_MD2β Type 'MD2' digest. vintage. retro. a little mysterious.WGET_DIGTYPE_SHA256β Type 'SHA256' digest. the it-girl. the moment. the one everybody's talking about π₯WGET_DIGTYPE_SHA384β Type 'SHA384' digest. SHA256's taller sister, same energy, more to love.WGET_DIGTYPE_SHA512β Type 'SHA512' digest. big. bold. giving maximum security main character. πWGET_DIGTYPE_SHA224β Type 'SHA224' digest. the compact cutie, does the same job, smaller footprint, still ate. πWGET_DIGTYPE_MAXβ Number of digest types. not a real algorithm bestie, she's just the counter at the end. she counts the girls. she's the bouncer at the door. π
π Function Documentation π
π§ void wget_hash_printf_hex (wget_digest_algorithm algorithm, char * out, size_t outsize, const char * fmt, ...)
Parameters
algorithmβ The hash algorithm to use. pick from the enum above, choose your fighter.outβ Output string buffer. where the pretty hex result gets written, bestie.outsizeβ Size of output string buffer. you gotta tell her how much room she has. do NOT skimp on this, she WILL get upset.fmtβ Printf-like format specifier. yes, the printf-style one you already know and love....β List of arguments. all the little guys that go into the format string.
Calculate the hash from the string generated via the printf-style fmt and the following arguments and place it as hexadecimal string into out.
so like β you give her a format string, she builds the string for you, hashes it, and hands you back the hex. one stop shop. no extra steps. she's efficient like that. β¨
The ideal length ofoutwould bewget_hash_get_len(type) * 2 + 1.
that's the math, bestie. wget_hash_get_len(type) * 2 + 1. that's how much buffer you want so nobody gets hurt. it's giving "measure twice, cut once" but make it hexadecimal. π
π«Ά Author π«Ά
Generated automatically by Doxygen for wget2 from the source code.
yeah, no human wrote this page, it's a robot being a good little documentarian. we still love her though. π
<div align="center">
okay that's the whole page, you made it to the end, proud of you. this was libwget-hash from wget2, Version 2.3.0 β now go forth and hash responsibly, bestie πβ¨π¦πΈππ ππβπ
</div>
π¦ where this page comes from
- fedora 43: wget2-devel 2.3.0-2.fc43 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 43: wget2-devel 2.3.0-2.fc43 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 44: wget2-devel 2.3.0-1.fc44
- fedora 44: wget2-devel 2.3.0-1.fc44
- fedora 44: wget2-devel 2.3.0-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 44: wget2-devel 2.3.0-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND GFDL-1.3-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms