Hi All,
I am trying to find a compatible way to encrypt and decrypt strings (passwords) between Windev and PHP. The security is a minor issue, so simplicity prevails.
I found a nice and simple php function to crypt and decrypt that uses base_64encode:
function encode5t($str)
{
for($i=0; $i<5;$i++)
{
$str=strrev(base64_encode($str)); //apply base64 first and then reverse the string
}
return $str;
}
To decode there's a similar function that reverses the process.
If I try to duplicate this code in Windev, I stumble upon the fact that Windev insists on using a passfrase for the Crypt function if using the
encodeBase64 constant.
Any other ideas how to create password encryption/decryption that can be used in Windev AND php?
Best regards,
Piet
Edited 1 time(s). Last edit at 12/16/2008 01:52PM by Piet van Zanten.