ZIP_ENCRYPTION_METHOD_SUPPORTED(3)

πŸ“¦
version 1.11.4 Β· 3 versions
, in arch rolling, debian trixie, fedora 43, fedora 44, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– zip_encryption_method_supported β€” the "is this encryption method even supported??" check πŸ’–

okay bestie, so this one lives in section 3 of the manual (Library Functions Manual, iykyk) and it's from libzip. Let's get into it 🫢


✨ LIBRARY ✨

libzip β€” and you link it like this, no cap:

-lzip

🌸 SYNOPSIS 🌸

#include <zip.h>

int
zip_encryption_method_supported(zip_int16_t method, int encrypt);

πŸ¦‹ DESCRIPTION πŸ¦‹

so zip_encryption_method_supported() tells you whether the encryption method method is actually supported β€” and the vibe check depends on that encrypt argument:

  • if encrypt is zero β†’ it's asking about encryption
  • otherwise β†’ it's asking about decryption (yes literally the otherwise case, that's the rule)

that's it. that's the whole function. she's simple, she's iconic πŸ’…


⭐ RETURN VALUES ⭐

  • returns 1 if the method is supported πŸŽ‰
  • returns 0 otherwise πŸ™ˆ

πŸŽ€ SEE ALSO πŸŽ€


πŸ’œ HISTORY πŸ’œ

zip_encryption_method_supported() was added in libzip 1.7.0 β€” a whole era πŸ‘‘


πŸ‘‘ AUTHORS πŸ‘‘

Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at> β€” legends, fr fr 🌈


okay that's the whole page, mwah πŸ’‹ this one shipped from Debian and the date on it is April 2, 2021 β€” go forth and encrypt responsibly bestie 🧚✨