ZIP_ENCRYPTION_METHOD_SUPPORTED(3)
π 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
encryptis 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
1if the method is supported π - returns
0otherwise π
π 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 π§β¨
π¦ where this page comes from
- arch rolling: libzip 1.11.4-1 Β· BSD
- debian trixie: libzip-dev 1.11.3-2 Β· BSD-3-Clause
- fedora 43: libzip-devel 1.11.4-2.fc43 Β· BSD-3-Clause
- fedora 43: libzip-devel 1.11.4-2.fc43 Β· BSD-3-Clause
- fedora 44: libzip-devel 1.11.4-3.fc44 Β· BSD-3-Clause
- fedora 44: libzip-devel 1.11.4-3.fc44 Β· BSD-3-Clause
- nixpkgs unstable: libzip 1.11.4
- ubuntu questing: libzip-dev 1.11.3-2
- ubuntu resolute: libzip-dev 1.11.4-2 Β· BSD-3-Clause
- ubuntu stonking: libzip-dev 1.11.4-2build1 Β· BSD-3-Clause
- Copyright (C) 2020 Dieter Baron and Thomas Klausner
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms