Gerrit Hulleman wrote:The SALT is simply any 2 character string chosen from the set> I'm trying to translate a function from a perl script to C++. The perl
> script is:
> $passwdcrypt = crypt($data_access[$access], SALT);
> This passwd is used in an apache htpasswd file. SALT is not defined in C++.
> Is SALT a constant or a function? If it is a constant: what is that
> constant. If it is a function, what is the function?
> Gerrit Hulleman
[./0-9A-Za-z]. See 'perldoc -f crypt'.
IIRC, it is straightforward to take 'fcrypt.c' from the perl source and
create from it a C static library file that exports that 'crypt'
function (which I think is named 'des_fcrypt' in 'fcrypt.c'). I would
think it would be just as easy with C++ as it was with C.
To reply by email u have to take out the u in kalinaubears.