KI_CRYPT

Encrypt a password

Synopsis:
CALL KI_CRYPT key$, seed$ TO result$
result$ = 'ki_crypt( key$, seed$ )
ArgumentEnumerationPurpose
key$Blank terminated password
seed$Encryption seed, at least 2 chars
result$Encrypted password
>KI_CRYPT

KI_CRYPT

This call allows passwords to be encrypted using the standard Unix crypt() function though for compatibility it is also available for Windows

It is described in the Rev7 and Rev8 libraries as

DEFFN 'KI_CRYPT(ki_key$, ki_key1$, ki_sym)
and should be called as
'KI_CRYPT(key$, seed$, SYM(buf$))

The password key$ should be blank terminated. The seed seed$ must be at least 2 bytes long. The encrypted result returned in SYM(ki_sym)$ will be null terminated and will contain a copy of the seed in the first two bytes. In a future version of KCML this result string may be blank terminated so you should be prepared to handle either.

History
Introduced in KCML 3.00
See Also:
IP_TOS, KI_AES_DECRYPT, KI_AES_ENCRYPT, KI_COMP, KI_COMPFILE, KI_DCOMP, KI_DCOMPFILE, KI_DES_DECRYPT, KI_DES_ENCRYPT, KI_DF, KI_DFK, KI_DIR, KI_DIR_LIST, KI_DS, KI_MD5, KI_PID, KI_PMATCH, KI_SHA1, KI_SIZE, KI_STAT, KI_STATFS, KI_TOUCH, R7_DATE2J, R7_J2DATE
KCML database status codes