On Wed, Jun 4, 2008 at 1:09 PM, MB Software Solutions General Account < [EMAIL PROTECTED]> wrote:
> (vfp9sp1) > > I must be having a brain fart. I've downloaded Craig's > VFPEncryption.fll and am trying to do simple encrypt and decrypt with > the AE256 option (nEncryptionType=2) > > * all passwords set to PASSWORD at this point for test > set library to vfpencryption.fll > REPLACE ALL cpassword WITH > encrypt(ALLTRIM(luusers.cpassword)+CHR(0),"test!me",2) FOR NOT > lencrypted AND NOT EMPTY(cpassword) > > I added the CHR(0) as I thought Craig said to do in the docs. > Ok...seems to encrypt the values. But when I decrypt, the value that > returns is NOT the original value. Somehow, I'm screwing up how to > handle the CHR(0)s apparently. Here's my DECRYPT command: > > WAIT WINDOW decrypt(cpassword,"test!me",2) && return value is not even > close! > > > I did some derivative before that got me PASSWORD followed by some crap, > but I can't seem to get back to what I did. > > Can someone who uses this fine FLL help me out with their approach? My > inkling is to use the 1024 Encryption mode, but I'm sure my coworker > will want to use the AE256 instead, so I want to get that option working. > ---------------------------------------------- CHR(0) = null in C which is what the .fll is ??? You may have to deal with alltrim() as possible starting guess. They inbound length may only be space(6) and the decrypt may be getting space(25) I got burned with extra spaces in VFP a long time ago. -- Stephen Russell Sr. Production Systems Programmer Mimeo.com Memphis TN 901.246-0159 --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

