Please note that the procedures in this section are not suited for strong encryption, they are only interfaces to the well-known and common system library functions of the same name. They are just as good (or bad) as the underlying functions, so you should refer to your system documentation before using them (see Encrypting Passwords in The GNU C Library Reference Manual).
Encrypt key, with the addition of salt (both strings),
crypt C library call.
getpass is not an encryption procedure per se, it
appears here because it is often used in combination with
Display prompt to the standard error output and read a password from /dev/tty. If this file is not accessible, it reads from standard input. The password may be up to 127 characters in length. Additional characters and the terminating newline character are discarded. While reading the password, echoing and the generation of signals by special characters is disabled.