shishi_derive_default_salt(3)
π shishi_derive_default_salt β from the shishi manual, section 3 π
okay bestie, sit down, hydrate, and let me tell you about the single most "it's giving default credentials" little function in the whole shishi library. this is shishi_derive_default_salt(3), and yes it's an API function, and yes it slays π§β¨
β¨ SYNOPSIS β¨
#include <shishi.h>
int shishi_derive_default_salt(Shishi * handle, const char * name, char
** salt);
like. look at her. three args, one int, zero drama π
π ARGUMENTS π
Shishi * handleβ your shishi handle, the one you got fromshishi_init(). no handle, no service, that's the vibe check. π«Άconst char * nameβ the principal name of the user. as in, whose salt are we cooking today. πchar ** saltβ the output variable, and it gets a newly allocated salt string dropped into it. freshly allocated, just for you, no cap. πΈ
π¦ DESCRIPTION π¦
okay so here's the tea: this function derives the default salt from a principal. and what even is the default salt, you ask? it's literally the concatenation of the decoded realm and the principal. that's it. that's the whole recipe. mix them together and boom, salt. π§
not me thinking that's the most iconic little one-liner of cryptography-adjacent identity handling. it's giving "just concatenate and pray" but in a very official, standards-respecting way fr fr π
π₯ RETURN VALUE π₯
returns SHISHI_OK if it worked. that's the success case. anything else and... well, bestie, you know. π
π REPORTING BUGS π
found a bug? don't just scream into the group chat, actually report it:
- report bugs to
<bug-shishi@gnu.org>π§ - GNU Shishi home page:
http://www.gnu.org/software/shishi/ - general help using GNU software:
http://www.gnu.org/gethelp/
π 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.
so basically: go off, redistribute, remix, just keep the receipts. periodt. π
π§ SEE ALSO π§
the full documentation for shishi is maintained as a Texinfo manual. if the info and shishi programs are properly installed at your site, the command
info shishi
should give you access to the complete manual. iykyk πβ¨
and that's the whole page, bestie!! this one lives in the shishi manual, version 1.0.3, and it's the shishi_derive_default_salt(3) page specifically. go forth and salt responsibly π§ππ¦
π¦ 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