How to enable encrypt()/decrypt() to produce the same result in 16 and 32 bits version? So far I noticed a 16-bit decrypt() can't correctly decrypt a string encrypted by a 32-bit encrypt().
Any help is much appreciated as it's quite urgent.
TIA.
#include "FiveWin.ch"
function Main()
local oDlg, oIco, cId := "SUPERVISOR"
DEFINE ICON oIco FILE "..\icons\fivewin.ico"
DEFINE DIALOG oDlg TITLE "I am a DialogBox" COLOR "W+/B" ;
ICON oIco
@ 3, 5 BUTTON "Run module" SIZE 40, 12 ;
ACTION winexec("exe16.exe "+encrypt(trim(cId)) )
ACTIVATE DIALOG oDlg CENTERED
return nil
#include "fivewin.ch"
function main16(cID)
default cId := ""
msginfo(decrypt(trim(cID)))
return nil
@ 3, 5 BUTTON "Run module" SIZE 40, 12 ;
ACTION winexec("exe16.exe "+cmimeenc(encrypt(trim(cId))) )
msginfo(trim(decrypt(cmimedec(cId))))
James wrote:@ 3, 5 BUTTON "Run module" SIZE 40, 12 ;
ACTION winexec([exe16.exe ]+["]+encrypt(trim(cId))+["] )
James wrote:Granted that does seem odd. Are you using the same versions of FW and FWH? Perhaps there was a change in the versions that is causing the problem rather than 16bit vs 32bit.
AlexSchaft wrote:Another trick I use where high (>127) ascii and low(<32) can be tricky is to mime encode the strings
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 75 guests