Registry / crypto / libxcrypt

libxcrypt

JSON →
library4.5.2vcpkgunverified

libxcrypt is a modern library for one-way hashing of passwords. On Linux-based systems, by default libxcrypt will be binary backward compatible with the libcrypt.so.1 shipped as part of the GNU C Library.

vcpkg install libxcrypt
INSTALL
IMPORT
SIG · LIBXCRYPT
L
libxcrypt
cryptocppv4.5.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

crypt.h
#include <crypt.h>

Hash a password using SHA-256 crypt

#include <crypt.h> #include <stdio.h> int main() { char *result = crypt("password", "$5$saltstring"); printf("Hashed: %s\n", result); return 0; }
Debug
Known issues
gotchaOn some systems, linking may require -lcrypt or the library may conflict with glibc's built-in crypt.
fix
Use target_link_libraries with xcrypt::xcrypt and ensure no other crypt library is linked.
affects: *
Upgrade
Version history
4.5.2latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources

No resource links recorded.

libxcrypt — pip install libxcrypt · libregistry