KI_CRYPT
Argument | Enumeration | Purpose |
---|---|---|
key$ | Blank terminated password | |
seed$ | Encryption seed, at least 2 chars | |
result$ | Encrypted password |
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.