---
name: "zip_encryption_method_supported"
section: "3"
platform: "linux"
package: "libzip"
version: "1.11.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/zip_encryption_method_supported"
---

# zip\_encryption\_method\_supported(3)

return if an encryption method is supported

## NAME

**zip\_encryption\_method\_supported** – return if an encryption method is supported

## LIBRARY

libzip (-lzip)

## SYNOPSIS

**#include \<zip.h\>**

*int*\

**zip\_encryption\_method\_supported**(*zip\_int16\_t method*, *int encrypt*);

## DESCRIPTION

The **zip\_encryption\_method\_supported**() returns if the encryption method *method* is supported for encryption (if *encrypt* is zero) or decryption (otherwise).

## RETURN VALUES

Returns 1 if the method is supported, 0 otherwise.

## SEE ALSO

[libzip(3)](/libzip/3.md), [zip\_compression\_method\_supported(3)](/zip_compression_method_supported/3.md), [zip\_file\_set\_encryption(3)](/zip_file_set_encryption/3.md)

## HISTORY

**zip\_encryption\_method\_supported**() was added in libzip 1.7.0.

## AUTHORS

Dieter Baron ⟨*dillo@nih.at*⟩ and Thomas Klausner ⟨*wiz@gatalith.at*⟩
