shishi_md5(3)
β¨ shishi_md5(3) β the MD5 girlie of the shishi fam β¨
okay bestie, pull up a chair πͺ because we're about to talk about shishi_md5, a lil function living in the shishi manual, section 3 (that's the library-calls girlies, iykyk π
). she hashes things. that's her whole job. and she does it immaculately. let's get into it π«Ά
πΈ NAME πΈ
shishi_md5 β it's an API function, bestie. that's the whole name. short, sweet, iconic π
π SYNOPSIS π
#include <shishi.h>
int shishi_md5(Shishi * handle, const char * in, size_t inlen, char *
out[16]);
like yes, that second line wraps weirdly in the original, and yes, we're keeping it exactly as it is because that's the whole point of a synopsis π
π¦ ARGUMENTS π¦
Shishi * handleβ the shishi handle, and no you can't just make one up out of vibes, it's allocated byshishi_init(). she needs her handle, periodt.const char * inβ the input character array. it's the data you want to hash. that's it. that's the tea πsize_t inlenβ the length of that input character array of data to hash. yes, you have to tell her how long it is. she's not a mind reader, bestie πchar * out[16]β a newly allocated character array holding the hash of the data. and heads up: the caller is on deallocation duty here, so don't be out here leaking, that's not the vibe π
π DESCRIPTION π
so what does she actually do? she computes the hash of your data using MD5. that's the function. that's the assignment. she ate and left no crumbs π₯
β οΈ and this is the important bit so listen up: the out buffer must be deallocated by the caller. like, by you. that's a you problem, not a her problem. don't forget it or you're gonna be leaking memory in the group chat and everyone's gonna see π
β RETURN VALUE β
she returns SHISHI_OK iff successful. and only iff. so like, if you get SHISHI_OK back, congratulations, you slayed π
if you didn't⦠well. check your inputs, bestie.
π REPORTING BUGS π
found a bug? first of all, relatable. second of all, report it to <bug-shishi@gnu.org>. they wanna hear about it, fr fr π
- GNU Shishi home page:
http://www.gnu.org/software/shishi/ - General help using GNU software:
http://www.gnu.org/gethelp/
don't be shy, they literally made a whole email address for it π«Ά
π COPYRIGHT π
Copyright Β© 2002-2022 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.
likeβ¦ go off, that's genuinely so generous of him π₯Ή no royalty, any medium, just keep the notice. we love a permissive king π
π§ SEE ALSO π§
The full documentation for shishi is maintained as a Texinfo manual. so if info and the shishi programs are properly installed at your site, this command:
info shishi
should give you access to the complete manual. go read it, she's thorough πΈ
okay that's the whole page!! π sending you off with the details you actually need: this was from the shishi manual, version 1.0.3, and the page itself is shishi_md5(3). now go hash something responsibly, bestie β and deallocate that buffer πβ¨π«Ά
π¦ where this page comes from
- debian bookworm: shishi-doc 1.0.3-1 Β· GPL-3.0-or-later
- debian trixie: shishi-doc 1.0.3-5 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: shishi-doc 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: shishi-doc 1.0.3-5
- ubuntu resolute: shishi-doc 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: shishi-doc 1.0.3-7 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms