Subject | Re: [firebird-support] Re: Need help with FB XOR UDF, please |
---|---|
Author | Alexandre Benson Smith |
Post date | 2005-06-03T23:04:20Z |
Chuck Belanger wrote:
you can see what happens.
see you !
--
Alexandre Benson Smith
Development
THOR Software e Comercial Ltda.
Santo Andre - Sao Paulo - Brazil
www.thorsoftware.com.br
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.6.1 - Release Date: 03/06/2005
>Hi, Leonardo:Write what you get in a text log file (input and output values) maybe
>
>Thank you very much for taking the time to reply.
>
>I used your XOR procedure and the UDF declaration but am getting the same
>type of problem:
>
>Each time I call Str2Str, I get a different return value. This seems to
>cycle anywhere from 2-4 times then repeats the pattern. I have no idea
>what's going on here. The original function works just fine in a Delphi
>app. I continue to suspect there is something about using PChar vs String
>that make the difference.
>
>In any case I still can't get 'hello' back with your new procedure as in:
>
>SELECT FIRST 1 F_STR2STR(F_STR2STR('hello', 1234),1234) FROM TABLE
>
>I'm assuming that the above checks both obscuring and de-obscuring (I'm
>deliberately not saying encrypt/decrypt :) )
>
>I have very little experience working with PChars so if you or anyone
>else has further suggestions, please do so.
>
>Thanks,
>
>Chuck Belanger
>
>
you can see what happens.
see you !
--
Alexandre Benson Smith
Development
THOR Software e Comercial Ltda.
Santo Andre - Sao Paulo - Brazil
www.thorsoftware.com.br
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.6.1 - Release Date: 03/06/2005