Warning: This is the manual of the legacy Guile 2.2 series. You may want to read the manual of the current stable series instead.

Previous: , Up: POSIX   [Contents][Index]


7.2.14 Encryption

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).

Scheme Procedure: crypt key salt
C Function: scm_crypt (key, salt)

Encrypt key, with the addition of salt (both strings), using the crypt C library call.

Although getpass is not an encryption procedure per se, it appears here because it is often used in combination with crypt:

Scheme Procedure: getpass prompt
C Function: scm_getpass (prompt)

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.