libxcrypt

Extended crypt library for descrypt, md5crypt, bcrypt, and others.

Latest version: 4.5.2

Add to xmake.lua

add_requires("libxcrypt 4.5.2")

Learn how to add and link packages with Xmake →

Information

License
GPL-2.0-or-later
Recipe updated
2025-11-22T02:22:06.000Z

Platforms

  • linux: i386, x86_64, armv7, armv7s, arm64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64
  • msys: i386, x86_64
  • mingw: i386, x86_64, arm, arm64
  • bsd: i386, x86_64, arm, arm64, ppc, ppc64, ppc64el, riscv64, sparc64
  • macosx: x86_64, arm64

Options

failure_tokens
Make crypt and crypt_r return NULL on failure. · Type: boolean · Default: true
hashes
Select the hashing method to enable. · Type: string · Default: all
largefile
Enable support for large files. · Type: boolean · Default: true
obsolete_api
Enable all compatibility APIs, or only some. · Type: string · Default: all · Values: all, none, alt, glibc, owl, suse
obsolete_api_enosys
Enable stub-only compatibility API with no real functionality. · Type: boolean · Default: false
symvers
Enable library symbol versioning. (true => auto) · Type: boolean · Default: true
xcrypt_compat_files
Enable installation of compatibility headers/libraries/symlinks. · Type: boolean · Default: true
year2038
Enable support for timestamps after 2038. · Type: boolean · Default: true

Versions

  • 4.4.38
  • 4.5.2

Dependencies

No dependencies declared.

Used by (1)

Packages declaring this dependency; requirements can vary by platform and configuration.

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "libxcrypt 4.5.2"

show info

xrepo info "libxcrypt"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("libxcrypt 4.5.2")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("libxcrypt")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "libxcrypt 4.5.2" shell