summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-01-13 06:57:04 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-01-13 06:57:04 -0800
commitd1d529634ca0efabd8def4d1e4d103facb9f9380 (patch)
treeb78b2ac15b30f1b62b9de6303c5eff2a74a64dab /txr.1
parentdbc666fb0822e3bc0fd97d90e068f104ea4f5781 (diff)
downloadtxr-d1d529634ca0efabd8def4d1e4d103facb9f9380.tar.gz
txr-d1d529634ca0efabd8def4d1e4d103facb9f9380.tar.bz2
txr-d1d529634ca0efabd8def4d1e4d103facb9f9380.zip
Support crypt function.
* configure: Check for availability of crypt, and what library must be used. * sysif.c (crypt_wrap): New static function. (sysif_init): Register crypt intrinsic. * txr.1: Documented crypt.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.127
1 files changed, 27 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index a408611b..43b1fc5e 100644
--- a/txr.1
+++ b/txr.1
@@ -36030,6 +36030,33 @@ If the search fails,
.code nil
is returned.
+.SS* Unix Password Hashing
+.coNP Function @ crypt
+.synb
+.mets (crypt < key << salt )
+.syne
+.desc
+The
+.code crypt
+function is a wrapper for the Unix C library function of the same name.
+It calculates a hash over the
+.meta key
+and
+.meta salt
+arguments, which are strings. The hash is returned as a string.
+
+The
+.meta key
+and
+.meta salt
+arguments are converted into UTF-8 prior to being passed into the underlying
+platform function. The hash value is assumed to be UTF-8 and converted to
+Unicode characters, though it is not expected to contain anything but 7
+bit ASCII characters.
+
+Note: the underlying C library function uses a static buffer for its return
+value. The return value of the \*(TL function is a copy of that buffer.
+
.SS* Unix Signal Handling
On platforms where certain advanced features of POSIX signal handling are