Seems like by adding a encode function, you could add the ability to
choose which type of encoding to use, crypt or MD5 (could be others)
A function like....
function BOLTXencode($value, $field) {
## FUNCTION ENCODES A VALUE USING THE METHOD OF ENCRYPTIONG SET IN
SITE.CONFIG.
global $pageLink, $BOLTarray, $msg, $BOLTid, $BOLTmember,
$BOLTfieldKey;
$BOLTcrypt = BOLTconfig('BOLTcrypt');
$BOLTcryptType = BOLTconfig('BOLTcryptType');
if ($BOLTcryptType == '' || $BOLTcryptType == 'crypt') {
$return = crypt($value,$BOLTcrypt);
} else {
$return = md5($value.$BOLTcrypt);
}
return $value;
}
and then replace the two crypt functions in BOLTXlogin and
BOLTXregister to call the new function instead of crypt.
Then, in site.conf if you set the value:
cryptType: md5
it will use md5 hash instead of crypt. If cryptType is not set or set
to crypt it would use crypt.
Not sure if the function above is syntactically correct though... I am
still getting used to the internals.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---