Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

libcrypt(3LIB)

Name

libcrypt - encryption/decryption library

Description

Historically, functions in this library provided encoding and decoding routines utilizing the Data Encryption Standard (DES). This functionality now resides in libc(3LIB).

This library is maintained to provide backward compatibility for both runtime and compilation environments. The shared object is implemented as a filter on libc.so.1. Compilation of applications using these interfaces need not specify –lcrypt.

New applications should not use these interfaces. The DES standard was officially withdrawn by NIST in 2005, and the algorithm is no longer recommended for modern usage. Oracle Solaris may remove the remaining support for single-DES in a future update. Please upgrade your applications to use more modern ciphers and hashes and longer key lengths, such as those provided by openssl(7).

INTERFACES

The shared object libcrypt.so.1 provides the public interfaces defined below. See intro(3) for additional information on shared object interfaces.

crypt
encrypt
setkey

Files

/usr/lib/libcrypt.so.1

shared object

/usr/lib/64/libcrypt.so.1

64-bit shared object

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
MT-Level
Unsafe

See Also

encrypt(3C), setkey(3C), intro(3), attributes(7)